Class ClassSectionSource
- java.lang.Object
-
- net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
-
- net.officefloor.plugin.section.clazz.ClassSectionSource
-
- All Implemented Interfaces:
SectionSourceService<ClassSectionSource>,SectionSourceServiceFactory,SectionSource,ServiceFactory<SectionSourceService<?>>
public class ClassSectionSource extends AbstractSectionSource implements SectionSourceService<ClassSectionSource>, SectionSourceServiceFactory
ClassSectionSource.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClassSectionSource.SectionClassManagedFunctionSourceManagedFunctionSourceimplementation to provide theManagedFunctioninstances for theClassSectionSource.-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLASS_OBJECT_NAMEName of theSectionManagedObjectfor the section class.
-
Constructor Summary
Constructors Constructor Description ClassSectionSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SectionSourceService<?>createService(ServiceContext context)Creates the service.java.lang.StringgetSectionSourceAlias()Obtains the alias for theSectionSourceClass.java.lang.Class<ClassSectionSource>getSectionSourceClass()Obtains theSectionSourceClass.static ClassSectionFunctionNamespaceloadClassFunctions(java.lang.Class<?> sectionClass, SectionManagedObject sectionManagedObject, boolean isProvideInputs, ClassSectionLoader loader, SectionSourceContext context)Loads theClassSectionFunctioninstances.protected voidloadSpecification(AbstractSectionSource.SpecificationContext context)Loads theSectionSourceSpecification.voidsourceSection(SectionDesigner designer, SectionSourceContext context)Sources theOfficeSectionby constructing it via the inputSectionDesigner.-
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
-
-
-
-
Field Detail
-
CLASS_OBJECT_NAME
public static final java.lang.String CLASS_OBJECT_NAME
Name of theSectionManagedObjectfor the section class.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadClassFunctions
public static ClassSectionFunctionNamespace loadClassFunctions(java.lang.Class<?> sectionClass, SectionManagedObject sectionManagedObject, boolean isProvideInputs, ClassSectionLoader loader, SectionSourceContext context) throws java.lang.Exception
Loads theClassSectionFunctioninstances.- Parameters:
sectionClass- SectionClass.sectionManagedObject-SectionManagedObjectproviding theClassobject.isProvideInputs- Indicates if provideSectionInputinstances for eachManagedFunction.loader-ClassSectionLoader.context-SectionSourceContext.- Returns:
ClassSectionFunctionNamespace.- Throws:
java.lang.Exception- If fails to load theSectionFunctioninstances.
-
createService
public SectionSourceService<?> createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<SectionSourceService<?>>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
java.lang.Throwable- If fails to create the service.
-
getSectionSourceAlias
public java.lang.String getSectionSourceAlias()
Description copied from interface:SectionSourceServiceObtains the alias for theSectionSourceClass.- Specified by:
getSectionSourceAliasin interfaceSectionSourceService<ClassSectionSource>- Returns:
- Alias for the
SectionSourceClass.
-
getSectionSourceClass
public java.lang.Class<ClassSectionSource> getSectionSourceClass()
Description copied from interface:SectionSourceServiceObtains theSectionSourceClass.- Specified by:
getSectionSourceClassin interfaceSectionSourceService<ClassSectionSource>- Returns:
SectionSourceClass.
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSourceLoads theSectionSourceSpecification.- Specified by:
loadSpecificationin classAbstractSectionSource- Parameters:
context-AbstractSectionSource.SpecificationContext.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSourceSources theOfficeSectionby constructing it via the inputSectionDesigner.- Specified by:
sourceSectionin interfaceSectionSource- Parameters:
designer-SectionDesignerto construct the structure of theOfficeSection.context-SectionSourceContextto source details to construct theOfficeSection.- Throws:
java.lang.Exception- If fails to construct theOfficeSection.
-
-