App Start
1. Weaving mechanism
/**
* Pointcut for all the methods marked with the @DataAccessManagement annotation.
*/
@Pointcut("execution(* com.mobilize.jwebmap.dataaccess.TransactionAwareJdbcTemplate.execute(..))" )
public void executeInvoke() {
// Pointcut definition, no code required
}@WebMAPController
@RequestMapping(value = "/{control}/{event}/{uid:.+}", method = {RequestMethod.POST}, produces = MediaType.APPLICATION_JSON_VALUE)
public @ResponseBody IWebMapResponse start(
@PathVariable String control,
@PathVariable String event,
@PathVariable String uid, String requestBody) {2. Dependency injection
3. Instantiate AppComponent
4. Send AppStart action to the server
5. Call Main Entry Point of the Application
6. Process Request and Response
7. Process Response
8. The app's initial state is fully loaded
Was this helpful?