Class OfficeFloorModelOfficeFloorSource
- java.lang.Object
-
- net.officefloor.compile.spi.officefloor.source.impl.AbstractOfficeFloorSource
-
- net.officefloor.model.impl.officefloor.OfficeFloorModelOfficeFloorSource
-
- All Implemented Interfaces:
OfficeFloorSource
public class OfficeFloorModelOfficeFloorSource extends AbstractOfficeFloorSource
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.officefloor.source.impl.AbstractOfficeFloorSource
AbstractOfficeFloorSource.SpecificationContext
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorModelOfficeFloorSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadSpecification(AbstractOfficeFloorSource.SpecificationContext context)
Loads theOfficeFloorSourceSpecification
.void
sourceOfficeFloor(OfficeFloorDeployer deployer, OfficeFloorSourceContext context)
Sources theOfficeFloor
by deploying it via the inputOfficeFloorDeployer
.void
specifyConfigurationProperties(RequiredProperties requiredProperties, OfficeFloorSourceContext context)
Obtains from theOfficeFloorSource
any additionalProperty
instances required to source theOfficeFloor
after interrogating the configuration.-
Methods inherited from class net.officefloor.compile.spi.officefloor.source.impl.AbstractOfficeFloorSource
getSpecification
-
-
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(AbstractOfficeFloorSource.SpecificationContext context)
Description copied from class:AbstractOfficeFloorSource
Loads theOfficeFloorSourceSpecification
.- Specified by:
loadSpecification
in classAbstractOfficeFloorSource
- Parameters:
context
-AbstractOfficeFloorSource.SpecificationContext
.
-
specifyConfigurationProperties
public void specifyConfigurationProperties(RequiredProperties requiredProperties, OfficeFloorSourceContext context) throws java.lang.Exception
Description copied from interface:OfficeFloorSource
Obtains from the
OfficeFloorSource
any additionalProperty
instances required to source theOfficeFloor
after interrogating the configuration.This method is a separate initial step from the
OfficeFloorSource.sourceOfficeFloor(OfficeFloorDeployer, OfficeFloorSourceContext)
method to enable specifying any requiredProperty
instances once the necessaryConfigurationItem
instances have been interrogated.Typically this allows environment specific properties to be defined externally so that deployment configuration need not be repeated per environment. In other words, one set of deployment configuration with properties providing the differences between the environments.
This also enables sensitive properties, such as
passwords
, to not be contained in deployment configuration but within a "secure" location.- Parameters:
requiredProperties
- Populated by theOfficeFloorSource
with any additionalProperty
instances required to source theOfficeFloor
.context
-OfficeFloorSourceContext
populated withProperty
instances as per theOfficeFloorSourceSpecification
.- Throws:
java.lang.Exception
- If fails to initialise theOfficeFloorSource
.
-
sourceOfficeFloor
public void sourceOfficeFloor(OfficeFloorDeployer deployer, OfficeFloorSourceContext context) throws java.lang.Exception
Description copied from interface:OfficeFloorSource
Sources theOfficeFloor
by deploying it via the inputOfficeFloorDeployer
.- Parameters:
deployer
-OfficeFloorDeployer
to deploy theOfficeFloor
.context
-OfficeFloorSourceContext
populated with theProperty
instances as per theOfficeFloorSourceSpecification
andRequiredProperties
. Should there be a name clash between the two, theRequiredProperties
Property
will be used.- Throws:
java.lang.Exception
- If fails to source theOfficeFloor
.
-
-