Class ClassSectionLoader
java.lang.Object
net.officefloor.plugin.section.clazz.loader.ClassSectionLoader
- All Implemented Interfaces:
ClassSectionLoaderContext
Class loader for SectionSource.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionClassSectionLoader(SectionDesigner designer, SectionSourceContext sectionContext) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionaddManagedFunctions(String namespaceName, String managedFunctionSourceClassName, PropertyList properties, FunctionDecoration functionDecoration) Loads theSectionFunctioninstances.addManagedFunctions(String namespaceName, ManagedFunctionSource managedFunctionSource, PropertyList properties, FunctionDecoration functionDecoration) Loads theSectionFunctioninstances.addManagedObject(String objectName, String managedObjectSourceClassName, PropertyList properties, ObjectDecoration objectDecoration) Loads theSectionManagedObject.addManagedObject(String objectName, ManagedObjectSource<?, ?> managedObjectSource, PropertyList properties, ObjectDecoration objectDecoration) Loads theSectionManagedObject.getDependency(String qualifier, String typeName) Obtains theSectionDependencyObjectNode.getEscalation(Class<?> escalationType) Obtains theSectionFlowSinkNodefor theEscalation.Obtains theClassSectionFlow.getFunction(String functionName) Obtains theClassSectionManagedFunction.Obtains theSectionDesigner.Obtains theClassSectionFlowContext.Obtains theClassSectionObjectContext.protected StringgetSectionObjectName(String qualifier, String typeName) Obtains theSectionObjectname.Obtains theSectionSourceContext.protected booleanisQualifier(String qualifier) Indicates if have qualifier.voidload()Links non-configured items.setSingleMethod(String methodName) Configures single method mode, which avoids having to aggregate dependencies.
-
Constructor Details
-
ClassSectionLoader
Instantiate.- Parameters:
designer-SectionDesigner.sectionContext-SectionSourceContext.
-
-
Method Details
-
setSingleMethod
Configures single method mode, which avoids having to aggregate dependencies.- Parameters:
methodName- Name of the single method.- Returns:
thisfor chaining.
-
getSectionObjectName
Obtains theSectionObjectname.- Parameters:
qualifier- Qualifier. May benull.typeName- Type of object.- Returns:
SectionObjectname.
-
isQualifier
Indicates if have qualifier.- Parameters:
qualifier- Qualifier.- Returns:
trueif have qualifier.
-
addManagedFunctions
public ClassSectionFunctionNamespace addManagedFunctions(String namespaceName, String managedFunctionSourceClassName, PropertyList properties, FunctionDecoration functionDecoration) throws Exception Loads theSectionFunctioninstances.- Parameters:
namespaceName- Name ofSectionFunctionNamespace.managedFunctionSourceClassName-ManagedFunctionSourceClassname.properties-PropertyListfor theManagedFunctionSource.functionDecoration-FunctionDecoration. May benull.- Returns:
ClassSectionFunctionNamespace.- Throws:
Exception- If fails to loadSectionFunctioninstances.
-
addManagedFunctions
public ClassSectionFunctionNamespace addManagedFunctions(String namespaceName, ManagedFunctionSource managedFunctionSource, PropertyList properties, FunctionDecoration functionDecoration) throws Exception Loads theSectionFunctioninstances.- Parameters:
namespaceName- Name ofSectionFunctionNamespace.managedFunctionSource-ManagedFunctionSource.properties-PropertyListfor theManagedFunctionSource.functionDecoration-FunctionDecoration. May benull.- Returns:
ClassSectionFunctionNamespace.- Throws:
Exception- If fails to loadSectionFunctioninstances.
-
addManagedObject
public ClassSectionManagedObject addManagedObject(String objectName, String managedObjectSourceClassName, PropertyList properties, ObjectDecoration objectDecoration) throws Exception Loads theSectionManagedObject.- Parameters:
objectName- Name ofSectionManagedObject.managedObjectSourceClassName-ManagedObjectSourceClassname.properties-PropertyListfor theManagedObjectSource.objectDecoration-ObjectDecorationMay benull.- Returns:
ClassSectionManagedObject.- Throws:
Exception- If fails to load theSectionManagedObject.
-
addManagedObject
public ClassSectionManagedObject addManagedObject(String objectName, ManagedObjectSource<?, ?> managedObjectSource, PropertyList properties, ObjectDecoration objectDecoration) throws ExceptionLoads theSectionManagedObject.- Parameters:
objectName- Name ofSectionManagedObject.managedObjectSource-ManagedObjectSource.properties-PropertyListfor theManagedObjectSource.objectDecoration-ObjectDecorationMay benull.- Returns:
ClassSectionManagedObject.- Throws:
Exception- If fails to load theSectionManagedObject.
-
getDependency
public SectionDependencyObjectNode getDependency(String qualifier, String typeName) throws Exception Obtains theSectionDependencyObjectNode.- Parameters:
qualifier- Qualifier. May benull.typeName- Type name of dependency.- Returns:
SectionDependencyObjectNode.- Throws:
Exception- If fails to obtainSectionDependencyObjectNode.
-
getFlow
Obtains theClassSectionFlow.- Parameters:
flowName- Name of theSectionFlowSinkNode.argumentTypeName- Argument type name. May benullfor no argument.- Returns:
ClassSectionFlow.
-
getFunction
Obtains theClassSectionManagedFunction.- Parameters:
functionName- Name of theSectionFunction.- Returns:
ClassSectionManagedFunctionornullif noSectionFunctionby the name.
-
getEscalation
Obtains theSectionFlowSinkNodefor theEscalation.- Parameters:
escalationType-Escalationtype.- Returns:
SectionFlowSinkNode.- Throws:
Exception- If fails to obtainSectionFlowSinkNode.
-
load
Links non-configured items.- Throws:
Exception- If fails to configure.
-
getSectionObjectContext
Description copied from interface:ClassSectionLoaderContextObtains theClassSectionObjectContext.- Specified by:
getSectionObjectContextin interfaceClassSectionLoaderContext- Returns:
ClassSectionObjectContext.
-
getSectionFlowContext
Description copied from interface:ClassSectionLoaderContextObtains theClassSectionFlowContext.- Specified by:
getSectionFlowContextin interfaceClassSectionLoaderContext- Returns:
ClassSectionFlowContext.
-
getSectionDesigner
Description copied from interface:ClassSectionLoaderContextObtains theSectionDesigner.- Specified by:
getSectionDesignerin interfaceClassSectionLoaderContext- Returns:
SectionDesigner.
-
getSectionSourceContext
Description copied from interface:ClassSectionLoaderContextObtains theSectionSourceContext.- Specified by:
getSectionSourceContextin interfaceClassSectionLoaderContext- Returns:
SectionSourceContext.
-