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, org.springframework.statemachine.config.model.StateMachineComponentResolver<String,String>, org.springframework.statemachine.config.model.StateMachineModelFactory<String,String>

public class UmlStateMachineModelFactory extends org.springframework.statemachine.config.model.AbstractStateMachineModelFactory<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

    Constructors
    Constructor
    Description
    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

    Modifier and Type
    Method
    Description
    org.springframework.statemachine.config.model.StateMachineModel<String,String>
     

    Methods inherited from class org.springframework.statemachine.config.model.AbstractStateMachineModelFactory

    build, getBeanFactory, getResourceLoader, getStateMachineComponentResolver, registerAction, registerGuard, resolveAction, resolveGuard, setBeanFactory, setResourceLoader, setStateMachineComponentResolver

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UmlStateMachineModelFactory

      public UmlStateMachineModelFactory(org.springframework.core.io.Resource resource)
      Instantiates a new uml state machine model factory.
      Parameters:
      resource - the resource
    • UmlStateMachineModelFactory

      public UmlStateMachineModelFactory(String location)
      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 resource
      additionalResources - the additional resources
    • UmlStateMachineModelFactory

      public UmlStateMachineModelFactory(String location, String[] additionalLocations)
      Instantiates a new uml state machine model factory.
      Parameters:
      location - the resource location
      additionalLocations - the additional locations
  • Method Details

    • build

      public org.springframework.statemachine.config.model.StateMachineModel<String,String> build()
      Specified by:
      build in interface org.springframework.statemachine.config.model.StateMachineModelFactory<String,String>
      Specified by:
      build in class org.springframework.statemachine.config.model.AbstractStateMachineModelFactory<String,String>