Class UmlStateMachineModelFactory
java.lang.Object
org.springframework.statemachine.config.model.AbstractStateMachineModelFactory<String,String>
org.springframework.statemachine.uml.UmlStateMachineModelFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.ResourceLoaderAware
,StateMachineComponentResolver<String,
,String> StateMachineModelFactory<String,
String>
StateMachineModelFactory
which builds StateMachineModel
from
uml representation.
resource
or location
is a main uml file used as a source
passed to parser classes. additionalResources
and additionalLocations
are needed if uml model have references or links to additional uml files as an
import. In case of a these files being located in a classpath which is inside of
a jar, files are copied out into filesystem as eclipse uml libs can only parse
physical files. In a case of this a common "path" from all resources are resolved
and copied into filesystem with a structure so that at least relative links in uml
files will work.-
Constructor Summary
ConstructorDescriptionUmlStateMachineModelFactory
(String location) Instantiates a new uml state machine model factory.UmlStateMachineModelFactory
(String location, String[] additionalLocations) Instantiates a new uml state machine model factory.UmlStateMachineModelFactory
(org.springframework.core.io.Resource resource) Instantiates a new uml state machine model factory.UmlStateMachineModelFactory
(org.springframework.core.io.Resource resource, org.springframework.core.io.Resource[] additionalResources) Instantiates a new uml state machine model factory. -
Method Summary
Methods inherited from class org.springframework.statemachine.config.model.AbstractStateMachineModelFactory
build, getBeanFactory, getResourceLoader, getStateMachineComponentResolver, registerAction, registerGuard, resolveAction, resolveGuard, setBeanFactory, setResourceLoader, setStateMachineComponentResolver
-
Constructor Details
-
UmlStateMachineModelFactory
public UmlStateMachineModelFactory(org.springframework.core.io.Resource resource) Instantiates a new uml state machine model factory.- Parameters:
resource
- the resource
-
UmlStateMachineModelFactory
Instantiates a new uml state machine model factory.- Parameters:
location
- the resource location
-
UmlStateMachineModelFactory
public UmlStateMachineModelFactory(org.springframework.core.io.Resource resource, org.springframework.core.io.Resource[] additionalResources) Instantiates a new uml state machine model factory.- Parameters:
resource
- the resourceadditionalResources
- the additional resources
-
UmlStateMachineModelFactory
Instantiates a new uml state machine model factory.- Parameters:
location
- the resource locationadditionalLocations
- the additional locations
-
-
Method Details
-
build
Description copied from interface:StateMachineModelFactory
Builds the state machine model.- Specified by:
build
in interfaceStateMachineModelFactory<String,
String> - Specified by:
build
in classAbstractStateMachineModelFactory<String,
String> - Returns:
- the state machine model
-