Class OfficeFloorSourceContextImpl
- java.lang.Object
-
- net.officefloor.frame.impl.construct.source.SourcePropertiesImpl
-
- net.officefloor.frame.impl.construct.source.SourceContextImpl
-
- net.officefloor.configuration.impl.ConfigurationSourceContextImpl
-
- net.officefloor.compile.impl.officefloor.OfficeFloorSourceContextImpl
-
- All Implemented Interfaces:
OfficeFloorExtensionContext
,OfficeFloorSourceContext
,ConfigurationContext
,ServiceContext
,SourceContext
,SourceProperties
public class OfficeFloorSourceContextImpl extends ConfigurationSourceContextImpl implements OfficeFloorSourceContext, OfficeFloorExtensionContext
OfficeFloorSourceContext
implementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.configuration.ConfigurationContext
DEFAULT_TAG_PREFIX, DEFAULT_TAG_SUFFIX, PROPERTY_CONFIGURATION_INPUT_CHARSET, PROPERTY_CONFIGURATION_INPUT_TAG_PREFIX, PROPERTY_CONFIGURATION_INPUT_TAG_SUFFIX, PROPERTY_CONFIGURATION_OUTPUT_CHARSET
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorSourceContextImpl(boolean isLoadingType, java.lang.String officeFloorLocation, java.lang.String[] additionalProfiles, PropertyList propertyList, OfficeFloorNode officeFloorNode, NodeContext nodeContext)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyList
createPropertyList()
Creates a newPropertyList
.java.lang.String
getOfficeFloorLocation()
Obtains the location of theOfficeFloor
.ManagedObjectType<?>
loadManagedObjectType(java.lang.String managedObjectSourceName, java.lang.String managedObjectSourceClassName, PropertyList properties)
Loads theManagedObjectType
.ManagedObjectType<?>
loadManagedObjectType(java.lang.String managedObjectSourceName, ManagedObjectSource<?,?> managedObjectSource, PropertyList properties)
Loads theManagedObjectType
.OfficeType
loadOfficeType(java.lang.String officeName, java.lang.String officeSourceClassName, java.lang.String location, PropertyList properties)
Loads theOfficeType
.OfficeType
loadOfficeType(java.lang.String officeName, OfficeSource officeSource, java.lang.String location, PropertyList properties)
Loads theOfficeType
.InitialSupplierType
loadSupplierType(java.lang.String supplierName, java.lang.String supplierSourceClassName, PropertyList properties)
Loads theInitialSupplierType
.InitialSupplierType
loadSupplierType(java.lang.String supplierName, SupplierSource supplierSource, PropertyList properties)
Loads theInitialSupplierType
.-
Methods inherited from class net.officefloor.configuration.impl.ConfigurationSourceContextImpl
getConfigurationItem, getOptionalConfigurationItem
-
Methods inherited from class net.officefloor.frame.impl.construct.source.SourceContextImpl
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServices
-
Methods inherited from class net.officefloor.frame.impl.construct.source.SourcePropertiesImpl
addProperty, getProperties, getProperty, getProperty, getPropertyNames
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.configuration.ConfigurationContext
getConfigurationItem, getOptionalConfigurationItem
-
Methods inherited from interface net.officefloor.frame.api.source.SourceContext
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServices
-
Methods inherited from interface net.officefloor.frame.api.source.SourceProperties
getProperties, getProperty, getProperty, getPropertyNames
-
-
-
-
Constructor Detail
-
OfficeFloorSourceContextImpl
public OfficeFloorSourceContextImpl(boolean isLoadingType, java.lang.String officeFloorLocation, java.lang.String[] additionalProfiles, PropertyList propertyList, OfficeFloorNode officeFloorNode, NodeContext nodeContext)
Initiate.- Parameters:
isLoadingType
- Indicates if loading type.officeFloorLocation
- Location of theOfficeFloor
.additionalProfiles
- Additional profiles.propertyList
-PropertyList
.officeFloorNode
-OfficeFloorNode
.nodeContext
-NodeContext
.
-
-
Method Detail
-
getOfficeFloorLocation
public java.lang.String getOfficeFloorLocation()
Description copied from interface:OfficeFloorSourceContext
Obtains the location of the
OfficeFloor
.How "location" is interpreted is for the
OfficeFloorSource
.- Specified by:
getOfficeFloorLocation
in interfaceOfficeFloorSourceContext
- Returns:
- Location of the
OfficeFloor
.
-
createPropertyList
public PropertyList createPropertyList()
Description copied from interface:OfficeFloorSourceContext
Creates a newPropertyList
.- Specified by:
createPropertyList
in interfaceOfficeFloorSourceContext
- Returns:
- New
PropertyList
.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, ManagedObjectSource<?,?> managedObjectSource, PropertyList properties)
Description copied from interface:OfficeFloorSourceContext
Loads the
ManagedObjectType
.This is to enable obtaining the type information for the
ManagedObject
to allow reflective configuration by theOfficeFloorSource
.- Specified by:
loadManagedObjectType
in interfaceOfficeFloorSourceContext
- Parameters:
managedObjectSourceName
- Name of theManagedObjectSource
.managedObjectSource
-ManagedObjectSource
instance.properties
-PropertyList
to configure theManagedObjectSource
.- Returns:
ManagedObjectType
ornull
if fails to load theManagedObjectType
.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, java.lang.String managedObjectSourceClassName, PropertyList properties)
Description copied from interface:OfficeFloorSourceContext
Loads the
ManagedObjectType
.This is to enable obtaining the type information for the
ManagedObject
to allow reflective configuration by theOfficeFloorSource
.- Specified by:
loadManagedObjectType
in interfaceOfficeFloorSourceContext
- Parameters:
managedObjectSourceName
- Name of theManagedObjectSource
.managedObjectSourceClassName
- Name of the implementingManagedObjectSource
class. May also be an alias.properties
-PropertyList
to configure theManagedObjectSource
.- Returns:
ManagedObjectType
ornull
if fails to load theManagedObjectType
.
-
loadSupplierType
public InitialSupplierType loadSupplierType(java.lang.String supplierName, SupplierSource supplierSource, PropertyList properties)
Description copied from interface:OfficeFloorSourceContext
Loads the
InitialSupplierType
.This is to enable obtaining the type information for the
SupplierSource
to allow reflective configuration by theOfficeFloorSource
.- Specified by:
loadSupplierType
in interfaceOfficeFloorSourceContext
- Parameters:
supplierName
- Name of theSupplierSource
.supplierSource
-SupplierSource
.properties
-PropertyList
to configure theSupplierSource
.- Returns:
InitialSupplierType
ornull
if fails to load theInitialSupplierType
.
-
loadSupplierType
public InitialSupplierType loadSupplierType(java.lang.String supplierName, java.lang.String supplierSourceClassName, PropertyList properties)
Description copied from interface:OfficeFloorSourceContext
Loads the
InitialSupplierType
.This is to enable obtaining the type information for the
SupplierSource
to allow reflective configuration by theOfficeFloorSource
.- Specified by:
loadSupplierType
in interfaceOfficeFloorSourceContext
- Parameters:
supplierName
- Name of theSupplierSource
.supplierSourceClassName
- Name of the implementingSupplierSource
class. May also be an alias.properties
-PropertyList
to configure theSupplierSource
.- Returns:
InitialSupplierType
ornull
if fails to load theInitialSupplierType
.
-
loadOfficeType
public OfficeType loadOfficeType(java.lang.String officeName, java.lang.String officeSourceClassName, java.lang.String location, PropertyList properties)
Description copied from interface:OfficeFloorSourceContext
Loads the
OfficeType
.This is to enable obtaining the type information for the
Office
to allow reflective configuration by theOfficeFloorSource
.- Specified by:
loadOfficeType
in interfaceOfficeFloorSourceContext
- Parameters:
officeName
- Name of theOffice
.officeSourceClassName
- Name of the implementingOfficeSource
class. May also be an alias.location
- Location of theOffice
.properties
-PropertyList
to configure theOfficeSource
.- Returns:
OfficeType
ornull
if fails to load theOfficeType
.
-
loadOfficeType
public OfficeType loadOfficeType(java.lang.String officeName, OfficeSource officeSource, java.lang.String location, PropertyList properties)
Description copied from interface:OfficeFloorSourceContext
Loads the
OfficeType
.This is to enable obtaining the type information for the
Office
to allow reflective configuration by theOfficeFloorSource
.- Specified by:
loadOfficeType
in interfaceOfficeFloorSourceContext
- Parameters:
officeName
- Name of theOffice
.officeSource
-OfficeSource
instance.location
- Location of theOffice
.properties
-PropertyList
to configure theOfficeSource
.- Returns:
OfficeType
ornull
if fails to load theOfficeType
.
-
-