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
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManagedFunctionSourceimplementation to provide theManagedFunctioninstances for theClassSectionSource.Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of theSectionManagedObjectfor the section class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.Obtains the alias for theSectionSourceClass.Obtains theSectionSourceClass.loadClassFunctions(Class<?> sectionClass, SectionManagedObject sectionManagedObject, boolean isProvideInputs, ClassSectionLoader loader, SectionSourceContext context) Loads theClassSectionFunctioninstances.protected voidLoads 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 Details
-
CLASS_OBJECT_NAME
Name of theSectionManagedObjectfor the section class.- See Also:
-
-
Constructor Details
-
ClassSectionSource
public ClassSectionSource()
-
-
Method Details
-
loadClassFunctions
public static ClassSectionFunctionNamespace loadClassFunctions(Class<?> sectionClass, SectionManagedObject sectionManagedObject, boolean isProvideInputs, ClassSectionLoader loader, SectionSourceContext context) throws Exception Loads theClassSectionFunctioninstances.- Parameters:
sectionClass- SectionClass.sectionManagedObject-SectionManagedObjectproviding theClassobject.isProvideInputs- Indicates if provideSectionInputinstances for eachManagedFunction.loader-ClassSectionLoader.context-SectionSourceContext.- Returns:
ClassSectionFunctionNamespace.- Throws:
Exception- If fails to load theSectionFunctioninstances.
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<SectionSourceService<?>>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
getSectionSourceAlias
Description copied from interface:SectionSourceServiceObtains the alias for theSectionSourceClass.- Specified by:
getSectionSourceAliasin interfaceSectionSourceService<ClassSectionSource>- Returns:
- Alias for the
SectionSourceClass.
-
getSectionSourceClass
Description copied from interface:SectionSourceServiceObtains theSectionSourceClass.- Specified by:
getSectionSourceClassin interfaceSectionSourceService<ClassSectionSource>- Returns:
SectionSourceClass.
-
loadSpecification
Description copied from class:AbstractSectionSourceLoads theSectionSourceSpecification.- Specified by:
loadSpecificationin classAbstractSectionSource- Parameters:
context-AbstractSectionSource.SpecificationContext.
-
sourceSection
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:
Exception- If fails to construct theOfficeSection.
-