By annotating the Spring controller it is possible to analyze their behavior

By annotating the spring controller it is possible to

This preview shows page 93 - 96 out of 113 pages.

By annotating the Spring controller it is possible to analyze their behavior, analyzing the average response time and the number of requests. Another interesting thing is the monitoring of the cached resources. 5.6.19. Log system In a real world crud application it is fundamental knowing when a resource has been created, removed or updated. A log system has been implemented in order to keep track on database about the changes in the dataset. The log entry keep track about the timestamp of the operation, the user who performed it, the entity updated, the ip address and some information about the user agent.
Image of page 93
Marco Livraghi Master thesis ID 835931 Automatic generation of web crud applications 94 5.6.20. Bower and Gulp Framework is quite big, with many references and dependencies to Javascript libraries and respective style sheet files. Bower has been introduced: it is a package manager for the web built on top of NodeJS. It creates a repository of the Javascript libraries and CSS files and keep them up to date. With this feature another utility tool has been introduced: Gulp, a Javascript task runner that automates developing operations and increase the productivity. Gulp allows to automatically bundle and minify libraries and stylesheets, compile Saas, run unit tests and code analysis. With Gulp, creating a build of the client application is a lot easier as it minifies the scripts and inject them into the main template. At this point, the framework generated all the standard files that are part of the scaffolding and the bower files that contains all the required client dependencies. 5.6.21. UI-route navigation The navigation of the generated application has been implemented with respect to UI-router, a module of AngularJS’s UI. UI-router has the concept of state and the user can navigate from one state to another. In this framework ’s case, each entity has its own state and all the action performed on a single entity and its descendant entities rely on a single state. 5.6.22. Login generation With this implementation, the login page is generated together with the project. Each sector of the application is accessible through certain credentials: if the user is not authorized a login prompt will be shown.
Image of page 94
Marco Livraghi Master thesis ID 835931 Automatic generation of web crud applications 95 5.6.23. $scope management In the first releases of the framework Angular controllers and views communicated through the $scope variable which cannot hide any information of the $scope to the view. That is why in the next release it has been decided to convert this logic to the “controller as” angular pattern. Using this pattern the view can only see the “controller as” and not the entire $scope. With this development, the generated scripts are also compatible with Angular2, in a long-term horizon.
Image of page 95
Image of page 96

You've reached the end of your free preview.

Want to read all 113 pages?

  • Summer '17
  • Habt
  • Web application framework, Spring Framework, Marco Livraghi

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes