Class OfficeSourceContextImpl
- 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.office.OfficeSourceContextImpl
-
- All Implemented Interfaces:
OfficeExtensionContext
,OfficeSourceContext
,ConfigurationContext
,ServiceContext
,SourceContext
,SourceProperties
public class OfficeSourceContextImpl extends ConfigurationSourceContextImpl implements OfficeSourceContext, OfficeExtensionContext
OfficeSourceContext
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 OfficeSourceContextImpl(boolean isLoadingType, java.lang.String officeLocation, java.lang.String[] additionalProfiles, PropertyList propertyList, OfficeNode officeNode, NodeContext nodeContext)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyList
createPropertyList()
Creates a newPropertyList
.java.lang.String
getOfficeLocation()
Obtains the location of theOffice
.java.lang.String
getOfficeName()
Obtains the name of theOffice
.AdministrationType<?,?,?>
loadAdministrationType(java.lang.String administrationName, java.lang.String administrationSourceClassName, PropertyList properties)
Loads theAdministrationType
.AdministrationType<?,?,?>
loadAdministrationType(java.lang.String administrationName, AdministrationSource<?,?,?> administrationSource, PropertyList properties)
Loads theAdministrationType
.GovernanceType<?,?>
loadGovernanceType(java.lang.String governanceName, java.lang.String governanceSourceClassName, PropertyList properties)
Loads theGovernanceType
.GovernanceType<?,?>
loadGovernanceType(java.lang.String governanceName, GovernanceSource<?,?> governanceSource, PropertyList properties)
Loads theGovernanceType
.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
.OfficeSectionType
loadOfficeSectionType(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties)
Loads theOfficeSectionType
.OfficeSectionType
loadOfficeSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String sectionLocation, PropertyList properties)
Loads theOfficeSectionType
.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
-
OfficeSourceContextImpl
public OfficeSourceContextImpl(boolean isLoadingType, java.lang.String officeLocation, java.lang.String[] additionalProfiles, PropertyList propertyList, OfficeNode officeNode, NodeContext nodeContext)
Instantiate.- Parameters:
isLoadingType
- Indicates if loading type.officeLocation
- Location of theOffice
.additionalProfiles
- Additional profiles.propertyList
-PropertyList
.officeNode
-OfficeNode
.nodeContext
-NodeContext
.
-
-
Method Detail
-
getOfficeName
public java.lang.String getOfficeName()
Description copied from interface:OfficeExtensionContext
Obtains the name of theOffice
.- Specified by:
getOfficeName
in interfaceOfficeExtensionContext
- Returns:
- Name of the
Office
.
-
getOfficeLocation
public java.lang.String getOfficeLocation()
Description copied from interface:OfficeSourceContext
Obtains the location of the
Office
.How "location" is interpreted is for the
OfficeSource
.- Specified by:
getOfficeLocation
in interfaceOfficeSourceContext
- Returns:
- Location of the
Office
.
-
createPropertyList
public PropertyList createPropertyList()
Description copied from interface:OfficeSourceContext
Creates a newPropertyList
.- Specified by:
createPropertyList
in interfaceOfficeSourceContext
- Returns:
- New
PropertyList
.
-
loadOfficeSectionType
public OfficeSectionType loadOfficeSectionType(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties)
Description copied from interface:OfficeSourceContext
Loads the
OfficeSectionType
.This is to enable obtaining the type information for the
OfficeSection
to allow reflective configuration by theOfficeSource
.- Specified by:
loadOfficeSectionType
in interfaceOfficeSourceContext
- Parameters:
sectionName
- Name of theOfficeSection
.sectionSourceClassName
- Name of the implementingSectionSource
class.sectionLocation
- Location of theOfficeSection
.properties
-PropertyList
to configure theOfficeSection
.- Returns:
OfficeSectionType
ornull
if fails to load theOfficeSectionType
.
-
loadOfficeSectionType
public OfficeSectionType loadOfficeSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String sectionLocation, PropertyList properties)
Description copied from interface:OfficeSourceContext
Loads the
OfficeSectionType
.This is to enable obtaining the type information for the
OfficeSection
to allow reflective configuration by theOfficeSource
.- Specified by:
loadOfficeSectionType
in interfaceOfficeSourceContext
- Parameters:
sectionName
- Name of theOfficeSection
.sectionSource
-SectionSource
instance.sectionLocation
- Location of theOfficeSection
.properties
-PropertyList
to configure theOfficeSection
.- Returns:
OfficeSectionType
ornull
if fails to load theOfficeSectionType
.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, java.lang.String managedObjectSourceClassName, PropertyList properties)
Description copied from interface:OfficeSourceContext
Loads the
ManagedObjectType
.This is to enable obtaining the type information for the
ManagedObject
to allow reflective configuration by theOfficeSource
.- Specified by:
loadManagedObjectType
in interfaceOfficeSourceContext
- 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
.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, ManagedObjectSource<?,?> managedObjectSource, PropertyList properties)
Description copied from interface:OfficeSourceContext
Loads the
ManagedObjectType
.This is to enable obtaining the type information for the
ManagedObject
to allow reflective configuration by theOfficeFloorSource
.- Specified by:
loadManagedObjectType
in interfaceOfficeSourceContext
- Parameters:
managedObjectSourceName
- Name of theManagedObjectSource
.managedObjectSource
-ManagedObjectSource
instance.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:OfficeSourceContext
Loads the
InitialSupplierType
.This is to enable obtaining the type information for the
SupplierSource
to allow reflective configuration by theOfficeSource
.- Specified by:
loadSupplierType
in interfaceOfficeSourceContext
- 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:OfficeSourceContext
Loads the
InitialSupplierType
.This is to enable obtaining the type information for the
SupplierSource
to allow reflective configuration by theOfficeSource
.- Specified by:
loadSupplierType
in interfaceOfficeSourceContext
- 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
.
-
loadGovernanceType
public GovernanceType<?,?> loadGovernanceType(java.lang.String governanceName, java.lang.String governanceSourceClassName, PropertyList properties)
Description copied from interface:OfficeSourceContext
Loads the
GovernanceType
.This is to enable obtaining the type information for the
Governance
to allow reflective configuration by theOfficeSource
.- Specified by:
loadGovernanceType
in interfaceOfficeSourceContext
- Parameters:
governanceName
- Name ofGovernance
.governanceSourceClassName
- Name of the implementingGovernanceSource
class. May also be an alias.properties
-PropertyList
for configuring theGovernanceSource
.- Returns:
GovernanceType
ornull
if fails to load theGovernanceType
.
-
loadGovernanceType
public GovernanceType<?,?> loadGovernanceType(java.lang.String governanceName, GovernanceSource<?,?> governanceSource, PropertyList properties)
Description copied from interface:OfficeSourceContext
Loads the
GovernanceType
.This is to enable obtaining the type information for the
Governance
to allow reflective configuration by theOfficeSource
.- Specified by:
loadGovernanceType
in interfaceOfficeSourceContext
- Parameters:
governanceName
- Name ofGovernance
.governanceSource
-GovernanceSource
instance.properties
-PropertyList
for configuring theGovernanceSource
.- Returns:
GovernanceType
ornull
if fails to load theGovernanceType
.
-
loadAdministrationType
public AdministrationType<?,?,?> loadAdministrationType(java.lang.String administrationName, java.lang.String administrationSourceClassName, PropertyList properties)
Description copied from interface:OfficeSourceContext
Loads the
AdministrationType
.This is to enable obtaining the type information for the
Administration
to allow reflective configuration by theOfficeSource
.- Specified by:
loadAdministrationType
in interfaceOfficeSourceContext
- Parameters:
administrationName
- Name ofAdministration
.administrationSourceClassName
- Name of the implementingAdministrationSource
class. May also be an alias.properties
-PropertyList
to configure theAdministrationSource
.- Returns:
AdministrationType
ornull
if fails to load theAdministrationType
.
-
loadAdministrationType
public AdministrationType<?,?,?> loadAdministrationType(java.lang.String administrationName, AdministrationSource<?,?,?> administrationSource, PropertyList properties)
Description copied from interface:OfficeSourceContext
Loads the
AdministrationType
.This is to enable obtaining the type information for the
Administration
to allow reflective configuration by theOfficeSource
.- Specified by:
loadAdministrationType
in interfaceOfficeSourceContext
- Parameters:
administrationName
- Name ofAdministration
.administrationSource
-AdministrationSource
instance.properties
-PropertyList
to configure theAdministrationSource
.- Returns:
AdministrationType
ornull
if fails to load theAdministrationType
.
-
-