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
SectionSourcefor aSectionModel.- 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 Constructor Description SectionModelSectionSource()
-
Method Summary
All 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<SectionModelSectionSource>getSectionSourceClass()Obtains theSectionSourceClass.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
-
-
-
-
Method Detail
-
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<SectionModelSectionSource>- Returns:
- Alias for the
SectionSourceClass.
-
getSectionSourceClass
public java.lang.Class<SectionModelSectionSource> getSectionSourceClass()
Description copied from interface:SectionSourceServiceObtains theSectionSourceClass.- Specified by:
getSectionSourceClassin interfaceSectionSourceService<SectionModelSectionSource>- 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.
-
-