Package sc.layer

Class ProcessDefinition

  • All Implemented Interfaces:, IProcessDefinition

    public class ProcessDefinition
    extends java.lang.Object
    implements IProcessDefinition,
    An instance of this class is used to represent each process we need to build. If the processName is null we are using the default process - i.e. no layers have defined any process constraints.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessDefinition

        public ProcessDefinition()
      • ProcessDefinition

        public ProcessDefinition​(java.lang.String procName)
      • ProcessDefinition

        public ProcessDefinition​(java.lang.String procName,
                                 IRuntimeProcessor proc,
                                 boolean useContextClassLoader)
    • Method Detail

      • setProcessName

        public void setProcessName​(java.lang.String n)
      • getPerProcessSync

        public boolean getPerProcessSync()
        Set this to true if this process cannot use the default runtime's sync definition. In this case, a new sync def is generated for this process.
        Specified by:
        getPerProcessSync in interface IProcessDefinition
      • setPerProcessSync

        public void setPerProcessSync​(boolean perProcessSync)
      • setSyncProcessNames

        public void setSyncProcessNames​(java.util.List<java.lang.String> syncProcessNames)
      • getUseContextClassLoader

        public boolean getUseContextClassLoader()
        Description copied from interface: IProcessDefinition
        Should this process use the Thread.currentThread().setContextClassLoader() mechanism (as used by java servlets and components)
        Specified by:
        getUseContextClassLoader in interface IProcessDefinition
      • create

        public static ProcessDefinition create​(LayeredSystem sys,
                                               java.lang.String procName,
                                               java.lang.String runtimeName,
                                               boolean useContextClassLoader)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        equals in class java.lang.Object
      • readProcessDefinition

        public static ProcessDefinition readProcessDefinition​(LayeredSystem sys,
                                                              java.lang.String runtimeName,
                                                              java.lang.String procName)