facebook

MyEclipse for Spring Reference – Blueprints

1. Web Layer – Spring MVC

Note: Spring scaffolding requires a MyEclipse Spring or Bling subscription.

The image below shows the Spring MVC scaffolding blueprint, and the following table describes what gets generated.

SpringMVCScaffoldingBlueprint

ItemDescription
Flows (Spring Web Flow)one flow per domain object; each flow handles all users events for the managing domain object and related domain objects; including list, view, delete and add
WebRoot/WEB-INF/flows/managedomain/managedomain.xml
Fully implemented request handlersintegrated with Service and DAO layers using Spring dependency injection
See generated methods in Controllers
JUnit testsone test method per request handler
generated/<packageName>/DomainControllerTest.java
JSP pagesusing JSTL, Spring form/javascript tag library; one set of pages per domain object

Edit page – for editing and creating new records; localized; client-side validation
WebRoot/WEB-INF/flows/managedomain/editDomain.jsp

List page – for listing all top-level records; localized
WebRoot/WEB-INF/flows/managedomain/listDomain.jsp

View page – for read-only view of a record and listing related children records; localized
WebRoot/WEB-INF/flows/managedomain/viewDomain.jsp

Delete page – for confirming deletion of record
WebRoot/WEB-INF/flows/managedomain/deleteDomain.jsp

Application-level UI componentsone set per application

Header
WebRoot/WEB-INF/sitemesh-common/header.jsp

Footer
WebRoot/WEB-INF/sitemesh-common/footer.jsp

Dashboard
WebRoot/WEB-INF/sitemesh-common/dashboard.jsp

Sitemesh configurationfor layout management
  • WebRoot/WEB-INF/sitemesh.xml
  • WebRoot/WEB-INF/decorators.xml
  • WebRoot/WEB-INF/sitemesh-decorators/main.jsp
  • WebRoot/WEB-INF/sitemesh-decorators/include.jsp
  • WebRoot/WEB-INF/sitemesh-decorators/panel.jsp
Look and Feel
  • WebRoot/css/style.css
  • WebRoot/images/icons/
Spring context files for web layer
  • resources/projectname-web-context.xml
  • WebRoot/WEB-INF/config/projectname-webflow-config.xml
Internationalization SupportLocalization bundles
  • resources/bundles/application-resources.properties
  • resources/bundles/projectname-resources.properties
Web Flow Diagramsfor maintaining a web flow using graphical interface; each generated flow will have a matching diagram
webFlowDiagrams/managedomain.webflow_diagram
Other generated applications layers to support Spring Web Flow application

2. Web Layer – Spring WebFlow

The image below shows the Spring Webflow scaffolding blueprint, and the following table describes what gets generated.

SpringWebFlowScaffoldingBlueprintt


ItemDescription
Flows (Spring Web Flow)one flow per domain object; each flow handles all users events for the managing domain object and related domain objects; including list, view, delete and add
WebRoot/WEB-INF/flows/managedomain/managedomain.xml
Fully implemented request handlersintegrated with Service and DAO layers using Spring dependency injection
See generated methods in Controllers
JUnit testsone test method per request handler
generated/<packageName>/DomainControllerTest.java
JSP pagesusing JSTL, Spring form/javascript tag library; one set of pages per domain object

Edit page – for editing and creating new records; localized; client-side validation
WebRoot/WEB-INF/flows/managedomain/editDomain.jsp

List page – for listing all top-level records; localized
WebRoot/WEB-INF/flows/managedomain/listDomain.jsp

View page – for read-only view of a record and listing related children records; localized
WebRoot/WEB-INF/flows/managedomain/viewDomain.jsp

Delete page – for confirming deletion of record
WebRoot/WEB-INF/flows/managedomain/deleteDomain.jsp

Application-level UI componentsone set per application

Header
WebRoot/WEB-INF/sitemesh-common/header.jsp

Footer
WebRoot/WEB-INF/sitemesh-common/footer.jsp

Dashboard
WebRoot/WEB-INF/sitemesh-common/dashboard.jsp

Sitemesh configurationfor layout management
  • WebRoot/WEB-INF/sitemesh.xml
  • WebRoot/WEB-INF/decorators.xml
  • WebRoot/WEB-INF/sitemesh-decorators/main.jsp
  • WebRoot/WEB-INF/sitemesh-decorators/include.jsp
  • WebRoot/WEB-INF/sitemesh-decorators/panel.jsp
Look and Feel
  • WebRoot/css/style.css
  • WebRoot/images/icons/
Spring context files for web layer
  • resources/projectname-web-context.xml
  • WebRoot/WEB-INF/config/projectname-webflow-config.xml
Internationalization SupportLocalization bundles
  • resources/bundles/application-resources.properties
  • resources/bundles/projectname-resources.properties
Web Flow Diagramsfor maintaining a web flow using graphical interface; each generated flow will have a matching diagram
webFlowDiagrams/managedomain.webflow_diagram
Other generated applications layers to support Spring Web Flow application

3. Web Layer – JavaServer Faces 2.0

The image below shows the JavaServer Faces 2.0 scaffolding blueprint, and the following table describes what gets generated.

JSF2.0ScaffoldingBlueprint

Item

Description

Managed Beanone managed bean per domain object; each bean handles all users events for the managing domain object and related domain objects; including list, view, delete, and add
  • generated/<packageName>/jsf/DomainComponent.java
  • generated/<packageName>/jsf/DomainComponentImpl.java
Fully implemented request handlersintegrated with Service and DAO layers using Spring dependency injection
See generated methods in JSF managed beans
XHTML pagesusing JSF and Primefaces; one set of pages per domain object

Edit page – for editing and creating new records; localized; client-side validation
WebRoot//jsf/domain/editDomain.xhtml

List page – for listing all top-level records; localized
WebRoot/jsf/domain/listDomain.xhtml

View page – for read-only view of a record and listing related children records; localized
WebRoot/jsf/domain/viewDomain.xhtml

Delete page – for confirming deletion of record
WebRoot//jsf/domain/deleteDomain.xhtml

Application-level UI componentsone set per application

Header
WebRoot/WEB-INF/sitemesh-common/header.jsp

Footer
WebRoot/WEB-INF/sitemesh-common/footer.jsp

Dashboard
WebRoot/WEB-INF/sitemesh-common/dashboard.jsp

Sitemesh configurationfor layout management
  • WebRoot/WEB-INF/sitemesh.xml
  • WebRoot/WEB-INF/decorators.xml
  • WebRoot/WEB-INF/sitemesh-decorators/main.jsp
  • WebRoot/WEB-INF/sitemesh-decorators/include.jsp
  • WebRoot/WEB-INF/sitemesh-decorators/panel.jsp
Look and Feel
  • WebRoot/css/style.css
  • WebRoot/images/icons/
Spring context files for web layer

WebRoot/WEB-INF/faces-config.xml

Internationalization SupportLocalization bundles
  • resources/bundles/application-resources.properties
  • resources/bundles/projectname-resources.properties
Other generated applications layers to support Spring Web Flow application

4. Web Layer – Adobe Flex

The image below shows the Adobe Flex scaffolding blueprint, and the following table describes what gets generated.

AdobeFlexScaffoldingBlueprint



Item

Description

Declarative UI components for Adobe FlexListing and Detail – for read-only view of a record and listing related children records
flex_src/project/mxml/ManageDomain.mxml

Edit Form – for editing and creating new records; client-side validation
flex_src/project/mxml/DomainForm.mxml

Event handler in Actionscriptflex_src/<packagename>/DomainEvent.as
Domain model in Actionscriptflex_src/<packagename>/Domain.as
Look and Feel
  • WebRoot/css/flexStyles.css
  • WebRoot/images/icons/
Spring context files for Flex integrationWebRoot/WEB-INF/config/projectname-flex-context.xml
Flex configuration files
  • WebRoot/WEB-INF/flex/proxy-config.xml
  • WebRoot/WEB-INF/flex/services-config.xml
Flex compilation ant script
  • build/projectbuild.xml
  • build/projectbuild.xml.launch
Other generated applications layers to support Adobe Flex application

5. Web Layer – Google Web Toolkit (GWT)

The image below shows the Google Web Toolkit scaffolding blueprint.

GWTScaffoldingBlueprint

6. Web Layer – iPhone

The the following table describes what gets generated.


Item

Description

Stateless annotation-based multi-action Spring Controllers (@Controller)one controller per top-level domain object; each controller handles all users events for the managing domain object and related domain objects; including list, view, delete and add.
generated/<packageName>/DomainController.java
Fully implemented request handlersintegrated with service and DAO layers using Spring dependency injection

See generated methods in Controllers

JUnit testsone test method per request handler
generated/<packageName>/DomainControllerTest.java
JSP pagesusing JSTL, Spring form/JavaScript tag library; one set of pages per domain object

Edit page – for editing and creating new records; localized; client-side validation
WebRoot/WEB-INF/iphone/domain/editDomain.jsp

View page – for read-only view of a record and listing related children records; localized
WebRoot/WEB-INF/iphone/domain/viewDomain.jsp

List page – for listing all top-level records; localized
WebRoot/WEB-INF/iphone/domain/listDomain.jsp

Application-level UI componentsone set per application

Footer
WebRoot/WEB-INF/sitemesh-common/footer-iphone.jsp

Dashboard
WebRoot/WEB-INF/sitemesh-common/dashboard-iphone.jsp

Sitemesh configurationfor layout management
  • WebRoot/WEB-INF/sitemesh.xml
  • WebRoot/WEB-INF/decorators.xml
  • WebRoot/WEB-INF/sitemesh-decorators/main-iphone.jsp
  • WebRoot/WEB-INF/sitemesh-decorators/include-iphone.jsp
  • WebRoot/WEB-INF/sitemesh-decorators/panel-iphone.jsp
Look and Feel
  • WebRoot/css/style-iphone.css
  • WebRoot/images/icons/

Spring context files for web layer

resources/projectname-web-context.xml

Internationalization SupportLocalization bundles
  • resources/bundles/application-resources.properties
  • resources/bundles/projectname-resources.properties
Other generated applications layers to support iPhone Web application

7. Service Layer

The service layer blueprint applies to the Spring MVC, Spring WebFlow, JavaServer Faces (JSF 2.0), Adobe Flex, Google Web Toolkit (GWT), and iPhone web layer blueprints.


Item

Description

Service Interfacegenerated/<packageName>/DomainService.java
Stateless Spring Service w/ transaction management (@Service)generated/<packageName>/DomainServiceImpl.java
Fully implemented service methodsintegrated with DAO layer using Spring dependency injection
JUnit testsone test per service methodgenerated/<packageName>/DomainServiceTest.java
Spring context file for service layerresources/projectname-service-context.xml
Other configuration filesresources/jta.properties

8. Domain Layer

The service layer blueprint applies to the Spring MVC, Spring WebFlow, JavaServer Faces (JSF 2.0), Adobe Flex, Google Web Toolkit (GWT), and iPhone web layer blueprints.


Item

Description

JPA Entities w/ a full set of JPA Named Queriesgenerated/<packageName>/Domain.java
Primary Key Classesgenerated/<packageName>/DomainPK.java

9. Persistence/DAO Layer

The service layer blueprint applies to the Spring MVC, Spring WebFlow, JavaServer Faces (JSF 2.0), Adobe Flex, Google Web Toolkit (GWT), and iPhone web layer blueprints.

Item

Description

DAO Interfacegenerated/<packageName>/DomainDAO.java
Spring Repository (@Repository)generated/<packageName>/DomainDAOImpl.java
Fully implemented persistence methods
JUnit testsone test per DAO functiongenerated/<packageName>/DomainDAOTest.java
Spring context file for DAO layerresources/projectname-dao-context.xml
Other configuration files
  • resources/META-INF/persistence.xml
  • resources/hibernate.properties
  • resources/projectname-dao.properties