Class OfficeSourceContextImpl
- All Implemented Interfaces:
OfficeExtensionContext,OfficeSourceContext,ConfigurationContext,ServiceContext,SourceContext,SourceProperties
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
ConstructorsConstructorDescriptionOfficeSourceContextImpl(boolean isLoadingType, String officeLocation, String[] additionalProfiles, PropertyList propertyList, OfficeNode officeNode, NodeContext nodeContext) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionCreates a newPropertyList.Obtains the location of theOffice.Obtains the name of theOffice.AdministrationType<?,?, ?> loadAdministrationType(String administrationName, String administrationSourceClassName, PropertyList properties) Loads theAdministrationType.AdministrationType<?,?, ?> loadAdministrationType(String administrationName, AdministrationSource<?, ?, ?> administrationSource, PropertyList properties) Loads theAdministrationType.GovernanceType<?,?> loadGovernanceType(String governanceName, String governanceSourceClassName, PropertyList properties) Loads theGovernanceType.GovernanceType<?,?> loadGovernanceType(String governanceName, GovernanceSource<?, ?> governanceSource, PropertyList properties) Loads theGovernanceType.loadManagedObjectType(String managedObjectSourceName, String managedObjectSourceClassName, PropertyList properties) Loads theManagedObjectType.loadManagedObjectType(String managedObjectSourceName, ManagedObjectSource<?, ?> managedObjectSource, PropertyList properties) Loads theManagedObjectType.loadOfficeSectionType(String sectionName, String sectionSourceClassName, String sectionLocation, PropertyList properties) Loads theOfficeSectionType.loadOfficeSectionType(String sectionName, SectionSource sectionSource, String sectionLocation, PropertyList properties) Loads theOfficeSectionType.loadSupplierType(String supplierName, String supplierSourceClassName, PropertyList properties) Loads theInitialSupplierType.loadSupplierType(String supplierName, SupplierSource supplierSource, PropertyList properties) Loads theInitialSupplierType.Methods inherited from class net.officefloor.configuration.impl.ConfigurationSourceContextImpl
getConfigurationItem, getOptionalConfigurationItemMethods inherited from class net.officefloor.frame.impl.construct.source.SourceContextImpl
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServicesMethods inherited from class net.officefloor.frame.impl.construct.source.SourcePropertiesImpl
addProperty, getProperties, getProperty, getProperty, getPropertyNamesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.configuration.ConfigurationContext
getConfigurationItem, getOptionalConfigurationItemMethods inherited from interface net.officefloor.frame.api.source.SourceContext
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServicesMethods inherited from interface net.officefloor.frame.api.source.SourceProperties
getProperties, getProperty, getProperty, getPropertyNames
-
Constructor Details
-
OfficeSourceContextImpl
public OfficeSourceContextImpl(boolean isLoadingType, String officeLocation, 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 Details
-
getOfficeName
Description copied from interface:OfficeExtensionContextObtains the name of theOffice.- Specified by:
getOfficeNamein interfaceOfficeExtensionContext- Returns:
- Name of the
Office.
-
getOfficeLocation
Description copied from interface:OfficeSourceContextObtains the location of the
Office.How "location" is interpreted is for the
OfficeSource.- Specified by:
getOfficeLocationin interfaceOfficeSourceContext- Returns:
- Location of the
Office.
-
createPropertyList
Description copied from interface:OfficeSourceContextCreates a newPropertyList.- Specified by:
createPropertyListin interfaceOfficeSourceContext- Returns:
- New
PropertyList.
-
loadOfficeSectionType
public OfficeSectionType loadOfficeSectionType(String sectionName, String sectionSourceClassName, String sectionLocation, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
OfficeSectionType.This is to enable obtaining the type information for the
OfficeSectionto allow reflective configuration by theOfficeSource.- Specified by:
loadOfficeSectionTypein interfaceOfficeSourceContext- Parameters:
sectionName- Name of theOfficeSection.sectionSourceClassName- Name of the implementingSectionSourceclass.sectionLocation- Location of theOfficeSection.properties-PropertyListto configure theOfficeSection.- Returns:
OfficeSectionTypeornullif fails to load theOfficeSectionType.
-
loadOfficeSectionType
public OfficeSectionType loadOfficeSectionType(String sectionName, SectionSource sectionSource, String sectionLocation, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
OfficeSectionType.This is to enable obtaining the type information for the
OfficeSectionto allow reflective configuration by theOfficeSource.- Specified by:
loadOfficeSectionTypein interfaceOfficeSourceContext- Parameters:
sectionName- Name of theOfficeSection.sectionSource-SectionSourceinstance.sectionLocation- Location of theOfficeSection.properties-PropertyListto configure theOfficeSection.- Returns:
OfficeSectionTypeornullif fails to load theOfficeSectionType.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(String managedObjectSourceName, String managedObjectSourceClassName, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
ManagedObjectType.This is to enable obtaining the type information for the
ManagedObjectto allow reflective configuration by theOfficeSource.- Specified by:
loadManagedObjectTypein interfaceOfficeSourceContext- Parameters:
managedObjectSourceName- Name of theManagedObjectSource.managedObjectSourceClassName- Name of the implementingManagedObjectSourceclass. May also be an alias.properties-PropertyListto configure theManagedObjectSource.- Returns:
ManagedObjectTypeornullif fails to load theManagedObjectType.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(String managedObjectSourceName, ManagedObjectSource<?, ?> managedObjectSource, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
ManagedObjectType.This is to enable obtaining the type information for the
ManagedObjectto allow reflective configuration by theOfficeFloorSource.- Specified by:
loadManagedObjectTypein interfaceOfficeSourceContext- Parameters:
managedObjectSourceName- Name of theManagedObjectSource.managedObjectSource-ManagedObjectSourceinstance.properties-PropertyListto configure theManagedObjectSource.- Returns:
ManagedObjectTypeornullif fails to load theManagedObjectType.
-
loadSupplierType
public InitialSupplierType loadSupplierType(String supplierName, SupplierSource supplierSource, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
InitialSupplierType.This is to enable obtaining the type information for the
SupplierSourceto allow reflective configuration by theOfficeSource.- Specified by:
loadSupplierTypein interfaceOfficeSourceContext- Parameters:
supplierName- Name of theSupplierSource.supplierSource-SupplierSource.properties-PropertyListto configure theSupplierSource.- Returns:
InitialSupplierTypeornullif fails to load theInitialSupplierType.
-
loadSupplierType
public InitialSupplierType loadSupplierType(String supplierName, String supplierSourceClassName, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
InitialSupplierType.This is to enable obtaining the type information for the
SupplierSourceto allow reflective configuration by theOfficeSource.- Specified by:
loadSupplierTypein interfaceOfficeSourceContext- Parameters:
supplierName- Name of theSupplierSource.supplierSourceClassName- Name of the implementingSupplierSourceclass. May also be an alias.properties-PropertyListto configure theSupplierSource.- Returns:
InitialSupplierTypeornullif fails to load theInitialSupplierType.
-
loadGovernanceType
public GovernanceType<?,?> loadGovernanceType(String governanceName, String governanceSourceClassName, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
GovernanceType.This is to enable obtaining the type information for the
Governanceto allow reflective configuration by theOfficeSource.- Specified by:
loadGovernanceTypein interfaceOfficeSourceContext- Parameters:
governanceName- Name ofGovernance.governanceSourceClassName- Name of the implementingGovernanceSourceclass. May also be an alias.properties-PropertyListfor configuring theGovernanceSource.- Returns:
GovernanceTypeornullif fails to load theGovernanceType.
-
loadGovernanceType
public GovernanceType<?,?> loadGovernanceType(String governanceName, GovernanceSource<?, ?> governanceSource, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
GovernanceType.This is to enable obtaining the type information for the
Governanceto allow reflective configuration by theOfficeSource.- Specified by:
loadGovernanceTypein interfaceOfficeSourceContext- Parameters:
governanceName- Name ofGovernance.governanceSource-GovernanceSourceinstance.properties-PropertyListfor configuring theGovernanceSource.- Returns:
GovernanceTypeornullif fails to load theGovernanceType.
-
loadAdministrationType
public AdministrationType<?,?, loadAdministrationType?> (String administrationName, String administrationSourceClassName, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
AdministrationType.This is to enable obtaining the type information for the
Administrationto allow reflective configuration by theOfficeSource.- Specified by:
loadAdministrationTypein interfaceOfficeSourceContext- Parameters:
administrationName- Name ofAdministration.administrationSourceClassName- Name of the implementingAdministrationSourceclass. May also be an alias.properties-PropertyListto configure theAdministrationSource.- Returns:
AdministrationTypeornullif fails to load theAdministrationType.
-
loadAdministrationType
public AdministrationType<?,?, loadAdministrationType?> (String administrationName, AdministrationSource<?, ?, ?> administrationSource, PropertyList properties) Description copied from interface:OfficeSourceContextLoads the
AdministrationType.This is to enable obtaining the type information for the
Administrationto allow reflective configuration by theOfficeSource.- Specified by:
loadAdministrationTypein interfaceOfficeSourceContext- Parameters:
administrationName- Name ofAdministration.administrationSource-AdministrationSourceinstance.properties-PropertyListto configure theAdministrationSource.- Returns:
AdministrationTypeornullif fails to load theAdministrationType.
-