Class SectionModelSectionSource
java.lang.Object
net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
net.officefloor.model.impl.section.SectionModelSectionSource
- All Implemented Interfaces:
SectionSourceService<SectionModelSectionSource>,SectionSourceServiceFactory,SectionSource,ServiceFactory<SectionSourceService<?>>
public class SectionModelSectionSource
extends AbstractSectionSource
implements SectionSourceService<SectionModelSectionSource>, SectionSourceServiceFactory
SectionSource for a SectionModel.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.Obtains the alias for theSectionSourceClass.Obtains theSectionSourceClass.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
-
Constructor Details
-
SectionModelSectionSource
public SectionModelSectionSource()
-
-
Method Details
-
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<SectionModelSectionSource>- Returns:
- Alias for the
SectionSourceClass.
-
getSectionSourceClass
Description copied from interface:SectionSourceServiceObtains theSectionSourceClass.- Specified by:
getSectionSourceClassin interfaceSectionSourceService<SectionModelSectionSource>- 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.
-