Class OfficeModelOfficeSource
- java.lang.Object
-
- net.officefloor.compile.spi.office.source.impl.AbstractOfficeSource
-
- net.officefloor.model.impl.office.OfficeModelOfficeSource
-
- All Implemented Interfaces:
OfficeSourceService<OfficeModelOfficeSource>
,OfficeSourceServiceFactory
,OfficeSource
,ServiceFactory<OfficeSourceService<?>>
public class OfficeModelOfficeSource extends AbstractOfficeSource implements OfficeSourceService<OfficeModelOfficeSource>, OfficeSourceServiceFactory
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.office.source.impl.AbstractOfficeSource
AbstractOfficeSource.SpecificationContext
-
-
Constructor Summary
Constructors Constructor Description OfficeModelOfficeSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OfficeSourceService<?>
createService(ServiceContext context)
Creates the service.java.lang.String
getOfficeSourceAlias()
Obtains the alias for theOfficeSource
Class
.java.lang.Class<OfficeModelOfficeSource>
getOfficeSourceClass()
Obtains theOfficeSource
Class
.protected void
loadSpecification(AbstractOfficeSource.SpecificationContext context)
Loads theOfficeSourceSpecification
.void
sourceOffice(OfficeArchitect architect, OfficeSourceContext context)
Sources theOfficeType
by constructing it via the inputOfficeArchitect
.-
Methods inherited from class net.officefloor.compile.spi.office.source.impl.AbstractOfficeSource
getSpecification
-
-
-
-
Method Detail
-
createService
public OfficeSourceService<?> createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<OfficeSourceService<?>>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
getOfficeSourceAlias
public java.lang.String getOfficeSourceAlias()
Description copied from interface:OfficeSourceService
Obtains the alias for theOfficeSource
Class
.- Specified by:
getOfficeSourceAlias
in interfaceOfficeSourceService<OfficeModelOfficeSource>
- Returns:
- Alias for the
OfficeSource
Class
.
-
getOfficeSourceClass
public java.lang.Class<OfficeModelOfficeSource> getOfficeSourceClass()
Description copied from interface:OfficeSourceService
Obtains theOfficeSource
Class
.- Specified by:
getOfficeSourceClass
in interfaceOfficeSourceService<OfficeModelOfficeSource>
- Returns:
OfficeSource
Class
.
-
loadSpecification
protected void loadSpecification(AbstractOfficeSource.SpecificationContext context)
Description copied from class:AbstractOfficeSource
Loads theOfficeSourceSpecification
.- Specified by:
loadSpecification
in classAbstractOfficeSource
- Parameters:
context
-AbstractOfficeSource.SpecificationContext
.
-
sourceOffice
public void sourceOffice(OfficeArchitect architect, OfficeSourceContext context) throws java.lang.Exception
Description copied from interface:OfficeSource
Sources theOfficeType
by constructing it via the inputOfficeArchitect
.- Specified by:
sourceOffice
in interfaceOfficeSource
- Parameters:
architect
-OfficeArchitect
to structure theOffice
.context
-OfficeSourceContext
to source details to structure theOffice
.- Throws:
java.lang.Exception
- If fails to construct theOffice
.
-
-