You can use Spring template
models, to create a UML model that contains a basic infrastructure
for modeling in the Spring domain. You can create a UML model that
has the corresponding profile applied and reference library elements
imported so that you can model Spring Framework elements, MVC elements,
WebFlow elements, or Transactions elements.
Before you begin
You must be in the Modeling perspective.
About this task
Use a Spring template model to generate a UML model that
has the following characteristics:
- Spring profile is applied
- Spring model library is imported
- Spring modeling capabilities are enabled
- Contains a package structure named WebContent/Spring/default,
to which all Java™ Server Pages
(JSP) and presentation layer artifacts are added
- Contains a UML component that has the «Spring Configuration»
stereotype applied, which represents a Spring configuration
- Contains a UML activity that has the «Spring Package»
stereotype applied, which extends from the Spring-default package
in the Spring Framework
Procedure
- Click .
- In the Project name field, type
a name.
- Click Next.
- On the Create Model page, in the Categories pane, click
Spring Modeling, and in the Templates pane, select the template to
apply.
- Click Spring Core Model, to generate a model that has
the Spring Core profile applied and modeling capabilities enabled.
- Click Spring MVC Model, to generate a model has the
Spring Core and Spring MVC profiles applied and modeling capabilities
enabled.
- Click Spring WebFlow Model, to generate a model has
the Spring Core and Spring WebFlow profiles applied and modeling capabilities
enabled.
- Click Spring MVC Transaction Model to generate a model
that has all three Spring Core, Spring MVC, and Spring Transaction
profiles applied and modeling capabilities enabled.
- Click Spring Transaction Model, to generate a model
that has the Spring Core and Spring Transaction profiles applied and
modeling capabilities enabled. See Spring Framework for details on these modules.
Tip: If the Spring modeling folders are not displayed,
select the Show All Templates check box.
- In the File name field, type a name
and click Finish. The new
project is displayed in the Project Explorer view.
What to do next
You can now model basic Spring Framework elements, Spring
MVC elements, Spring WebFlow elements, or Spring Transaction elements
using the Palette in the diagram editor.