Interface OfficeSourceContext
-
- All Superinterfaces:
ConfigurationContext,SourceContext,SourceProperties
- All Known Subinterfaces:
OfficeExtensionContext
- All Known Implementing Classes:
OfficeSourceContextImpl
public interface OfficeSourceContext extends SourceContext, ConfigurationContext
Context for theOfficeSource.- 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertyListcreatePropertyList()Creates a newPropertyList.java.lang.StringgetOfficeLocation()Obtains the location 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.OfficeSectionTypeloadOfficeSectionType(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties)Loads theOfficeSectionType.OfficeSectionTypeloadOfficeSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String sectionLocation, PropertyList properties)Loads theOfficeSectionType.InitialSupplierTypeloadSupplierType(java.lang.String supplierName, java.lang.String supplierSourceClassName, PropertyList properties)Loads theInitialSupplierType.InitialSupplierTypeloadSupplierType(java.lang.String supplierName, SupplierSource supplierSource, PropertyList properties)Loads theInitialSupplierType.-
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
-
-
-
-
Method Detail
-
getOfficeLocation
java.lang.String getOfficeLocation()
Obtains the location of the
Office.How "location" is interpreted is for the
OfficeSource.- Returns:
- Location of the
Office.
-
createPropertyList
PropertyList createPropertyList()
Creates a newPropertyList.- Returns:
- New
PropertyList.
-
loadOfficeSectionType
OfficeSectionType loadOfficeSectionType(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties)
Loads the
OfficeSectionType.This is to enable obtaining the type information for the
OfficeSectionto allow reflective configuration by theOfficeSource.- 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
OfficeSectionType loadOfficeSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String sectionLocation, PropertyList properties)
Loads the
OfficeSectionType.This is to enable obtaining the type information for the
OfficeSectionto allow reflective configuration by theOfficeSource.- Parameters:
sectionName- Name of theOfficeSection.sectionSource-SectionSourceinstance.sectionLocation- Location of theOfficeSection.properties-PropertyListto configure theOfficeSection.- Returns:
OfficeSectionTypeornullif fails to load theOfficeSectionType.
-
loadManagedObjectType
ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, java.lang.String managedObjectSourceClassName, PropertyList properties)
Loads the
ManagedObjectType.This is to enable obtaining the type information for the
ManagedObjectto allow reflective configuration by theOfficeSource.- 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
ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, ManagedObjectSource<?,?> managedObjectSource, PropertyList properties)
Loads the
ManagedObjectType.This is to enable obtaining the type information for the
ManagedObjectto allow reflective configuration by theOfficeFloorSource.- Parameters:
managedObjectSourceName- Name of theManagedObjectSource.managedObjectSource-ManagedObjectSourceinstance.properties-PropertyListto configure theManagedObjectSource.- Returns:
ManagedObjectTypeornullif fails to load theManagedObjectType.
-
loadSupplierType
InitialSupplierType loadSupplierType(java.lang.String supplierName, java.lang.String supplierSourceClassName, PropertyList properties)
Loads the
InitialSupplierType.This is to enable obtaining the type information for the
SupplierSourceto allow reflective configuration by theOfficeSource.- 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.
-
loadSupplierType
InitialSupplierType loadSupplierType(java.lang.String supplierName, SupplierSource supplierSource, PropertyList properties)
Loads the
InitialSupplierType.This is to enable obtaining the type information for the
SupplierSourceto allow reflective configuration by theOfficeSource.- Parameters:
supplierName- Name of theSupplierSource.supplierSource-SupplierSource.properties-PropertyListto configure theSupplierSource.- Returns:
InitialSupplierTypeornullif fails to load theInitialSupplierType.
-
loadAdministrationType
AdministrationType<?,?,?> loadAdministrationType(java.lang.String administrationName, java.lang.String administrationSourceClassName, PropertyList properties)
Loads the
AdministrationType.This is to enable obtaining the type information for the
Administrationto allow reflective configuration by theOfficeSource.- 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
AdministrationType<?,?,?> loadAdministrationType(java.lang.String administrationName, AdministrationSource<?,?,?> administrationSource, PropertyList properties)
Loads the
AdministrationType.This is to enable obtaining the type information for the
Administrationto allow reflective configuration by theOfficeSource.- Parameters:
administrationName- Name ofAdministration.administrationSource-AdministrationSourceinstance.properties-PropertyListto configure theAdministrationSource.- Returns:
AdministrationTypeornullif fails to load theAdministrationType.
-
loadGovernanceType
GovernanceType<?,?> loadGovernanceType(java.lang.String governanceName, java.lang.String governanceSourceClassName, PropertyList properties)
Loads the
GovernanceType.This is to enable obtaining the type information for the
Governanceto allow reflective configuration by theOfficeSource.- 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
GovernanceType<?,?> loadGovernanceType(java.lang.String governanceName, GovernanceSource<?,?> governanceSource, PropertyList properties)
Loads the
GovernanceType.This is to enable obtaining the type information for the
Governanceto allow reflective configuration by theOfficeSource.- Parameters:
governanceName- Name ofGovernance.governanceSource-GovernanceSourceinstance.properties-PropertyListfor configuring theGovernanceSource.- Returns:
GovernanceTypeornullif fails to load theGovernanceType.
-
-