Class ClassSectionLoader
- java.lang.Object
-
- net.officefloor.plugin.section.clazz.loader.ClassSectionLoader
-
- All Implemented Interfaces:
ClassSectionLoaderContext
public class ClassSectionLoader extends java.lang.Object implements ClassSectionLoaderContext
Classloader forSectionSource.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ClassSectionLoader(SectionDesigner designer, SectionSourceContext sectionContext)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassSectionFunctionNamespaceaddManagedFunctions(java.lang.String namespaceName, java.lang.String managedFunctionSourceClassName, PropertyList properties, FunctionDecoration functionDecoration)Loads theSectionFunctioninstances.ClassSectionFunctionNamespaceaddManagedFunctions(java.lang.String namespaceName, ManagedFunctionSource managedFunctionSource, PropertyList properties, FunctionDecoration functionDecoration)Loads theSectionFunctioninstances.ClassSectionManagedObjectaddManagedObject(java.lang.String objectName, java.lang.String managedObjectSourceClassName, PropertyList properties, ObjectDecoration objectDecoration)Loads theSectionManagedObject.ClassSectionManagedObjectaddManagedObject(java.lang.String objectName, ManagedObjectSource<?,?> managedObjectSource, PropertyList properties, ObjectDecoration objectDecoration)Loads theSectionManagedObject.SectionDependencyObjectNodegetDependency(java.lang.String qualifier, java.lang.String typeName)Obtains theSectionDependencyObjectNode.SectionFlowSinkNodegetEscalation(java.lang.Class<?> escalationType)Obtains theSectionFlowSinkNodefor theEscalation.ClassSectionFlowgetFlow(java.lang.String flowName, java.lang.String argumentTypeName)Obtains theClassSectionFlow.ClassSectionManagedFunctiongetFunction(java.lang.String functionName)Obtains theClassSectionManagedFunction.SectionDesignergetSectionDesigner()Obtains theSectionDesigner.ClassSectionFlowContextgetSectionFlowContext()Obtains theClassSectionFlowContext.ClassSectionObjectContextgetSectionObjectContext()Obtains theClassSectionObjectContext.protected java.lang.StringgetSectionObjectName(java.lang.String qualifier, java.lang.String typeName)Obtains theSectionObjectname.SectionSourceContextgetSectionSourceContext()Obtains theSectionSourceContext.protected booleanisQualifier(java.lang.String qualifier)Indicates if have qualifier.voidload()Links non-configured items.
-
-
-
Constructor Detail
-
ClassSectionLoader
public ClassSectionLoader(SectionDesigner designer, SectionSourceContext sectionContext)
Instantiate.- Parameters:
designer-SectionDesigner.sectionContext-SectionSourceContext.
-
-
Method Detail
-
getSectionObjectName
protected java.lang.String getSectionObjectName(java.lang.String qualifier, java.lang.String typeName)Obtains theSectionObjectname.- Parameters:
qualifier- Qualifier. May benull.typeName- Type of object.- Returns:
SectionObjectname.
-
isQualifier
protected boolean isQualifier(java.lang.String qualifier)
Indicates if have qualifier.- Parameters:
qualifier- Qualifier.- Returns:
trueif have qualifier.
-
addManagedFunctions
public ClassSectionFunctionNamespace addManagedFunctions(java.lang.String namespaceName, java.lang.String managedFunctionSourceClassName, PropertyList properties, FunctionDecoration functionDecoration) throws java.lang.Exception
Loads theSectionFunctioninstances.- Parameters:
namespaceName- Name ofSectionFunctionNamespace.managedFunctionSourceClassName-ManagedFunctionSourceClassname.properties-PropertyListfor theManagedFunctionSource.functionDecoration-FunctionDecoration. May benull.- Returns:
ClassSectionFunctionNamespace.- Throws:
java.lang.Exception- If fails to loadSectionFunctioninstances.
-
addManagedFunctions
public ClassSectionFunctionNamespace addManagedFunctions(java.lang.String namespaceName, ManagedFunctionSource managedFunctionSource, PropertyList properties, FunctionDecoration functionDecoration) throws java.lang.Exception
Loads theSectionFunctioninstances.- Parameters:
namespaceName- Name ofSectionFunctionNamespace.managedFunctionSource-ManagedFunctionSource.properties-PropertyListfor theManagedFunctionSource.functionDecoration-FunctionDecoration. May benull.- Returns:
ClassSectionFunctionNamespace.- Throws:
java.lang.Exception- If fails to loadSectionFunctioninstances.
-
addManagedObject
public ClassSectionManagedObject addManagedObject(java.lang.String objectName, java.lang.String managedObjectSourceClassName, PropertyList properties, ObjectDecoration objectDecoration) throws java.lang.Exception
Loads theSectionManagedObject.- Parameters:
objectName- Name ofSectionManagedObject.managedObjectSourceClassName-ManagedObjectSourceClassname.properties-PropertyListfor theManagedObjectSource.objectDecoration-ObjectDecorationMay benull.- Returns:
ClassSectionManagedObject.- Throws:
java.lang.Exception- If fails to load theSectionManagedObject.
-
addManagedObject
public ClassSectionManagedObject addManagedObject(java.lang.String objectName, ManagedObjectSource<?,?> managedObjectSource, PropertyList properties, ObjectDecoration objectDecoration) throws java.lang.Exception
Loads theSectionManagedObject.- Parameters:
objectName- Name ofSectionManagedObject.managedObjectSource-ManagedObjectSource.properties-PropertyListfor theManagedObjectSource.objectDecoration-ObjectDecorationMay benull.- Returns:
ClassSectionManagedObject.- Throws:
java.lang.Exception- If fails to load theSectionManagedObject.
-
getDependency
public SectionDependencyObjectNode getDependency(java.lang.String qualifier, java.lang.String typeName) throws java.lang.Exception
Obtains theSectionDependencyObjectNode.- Parameters:
qualifier- Qualifier. May benull.typeName- Type name of dependency.- Returns:
SectionDependencyObjectNode.- Throws:
java.lang.Exception- If fails to obtainSectionDependencyObjectNode.
-
getFlow
public ClassSectionFlow getFlow(java.lang.String flowName, java.lang.String argumentTypeName)
Obtains theClassSectionFlow.- Parameters:
flowName- Name of theSectionFlowSinkNode.argumentTypeName- Argument type name. May benullfor no argument.- Returns:
ClassSectionFlow.
-
getFunction
public ClassSectionManagedFunction getFunction(java.lang.String functionName)
Obtains theClassSectionManagedFunction.- Parameters:
functionName- Name of theSectionFunction.- Returns:
ClassSectionManagedFunctionornullif noSectionFunctionby the name.
-
getEscalation
public SectionFlowSinkNode getEscalation(java.lang.Class<?> escalationType) throws java.lang.Exception
Obtains theSectionFlowSinkNodefor theEscalation.- Parameters:
escalationType-Escalationtype.- Returns:
SectionFlowSinkNode.- Throws:
java.lang.Exception- If fails to obtainSectionFlowSinkNode.
-
load
public void load() throws java.lang.ExceptionLinks non-configured items.- Throws:
java.lang.Exception- If fails to configure.
-
getSectionObjectContext
public ClassSectionObjectContext getSectionObjectContext()
Description copied from interface:ClassSectionLoaderContextObtains theClassSectionObjectContext.- Specified by:
getSectionObjectContextin interfaceClassSectionLoaderContext- Returns:
ClassSectionObjectContext.
-
getSectionFlowContext
public ClassSectionFlowContext getSectionFlowContext()
Description copied from interface:ClassSectionLoaderContextObtains theClassSectionFlowContext.- Specified by:
getSectionFlowContextin interfaceClassSectionLoaderContext- Returns:
ClassSectionFlowContext.
-
getSectionDesigner
public SectionDesigner getSectionDesigner()
Description copied from interface:ClassSectionLoaderContextObtains theSectionDesigner.- Specified by:
getSectionDesignerin interfaceClassSectionLoaderContext- Returns:
SectionDesigner.
-
getSectionSourceContext
public SectionSourceContext getSectionSourceContext()
Description copied from interface:ClassSectionLoaderContextObtains theSectionSourceContext.- Specified by:
getSectionSourceContextin interfaceClassSectionLoaderContext- Returns:
SectionSourceContext.
-
-