Interface OfficeFloorSourceContext
-
- All Superinterfaces:
ConfigurationContext
,SourceContext
,SourceProperties
- All Known Subinterfaces:
OfficeFloorExtensionContext
- All Known Implementing Classes:
OfficeFloorSourceContextImpl
public interface OfficeFloorSourceContext extends SourceContext, ConfigurationContext
Context for theOfficeFloorSource
.- 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 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 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
-
getOfficeFloorLocation
java.lang.String getOfficeFloorLocation()
Obtains the location of the
OfficeFloor
.How "location" is interpreted is for the
OfficeFloorSource
.- Returns:
- Location of the
OfficeFloor
.
-
createPropertyList
PropertyList createPropertyList()
Creates a newPropertyList
.- Returns:
- New
PropertyList
.
-
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
ManagedObject
to allow reflective configuration by theOfficeFloorSource
.- 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
ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, ManagedObjectSource<?,?> managedObjectSource, PropertyList properties)
Loads the
ManagedObjectType
.This is to enable obtaining the type information for the
ManagedObject
to allow reflective configuration by theOfficeFloorSource
.- Parameters:
managedObjectSourceName
- Name of theManagedObjectSource
.managedObjectSource
-ManagedObjectSource
instance.properties
-PropertyList
to configure theManagedObjectSource
.- Returns:
ManagedObjectType
ornull
if 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
SupplierSource
to allow reflective configuration by theOfficeFloorSource
.- 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
.
-
loadSupplierType
InitialSupplierType loadSupplierType(java.lang.String supplierName, SupplierSource supplierSource, PropertyList properties)
Loads the
InitialSupplierType
.This is to enable obtaining the type information for the
SupplierSource
to allow reflective configuration by theOfficeFloorSource
.- Parameters:
supplierName
- Name of theSupplierSource
.supplierSource
-SupplierSource
.properties
-PropertyList
to configure theSupplierSource
.- Returns:
InitialSupplierType
ornull
if fails to load theInitialSupplierType
.
-
loadOfficeType
OfficeType loadOfficeType(java.lang.String officeName, java.lang.String officeSourceClassName, java.lang.String location, PropertyList properties)
Loads the
OfficeType
.This is to enable obtaining the type information for the
Office
to allow reflective configuration by theOfficeFloorSource
.- 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
OfficeType loadOfficeType(java.lang.String officeName, OfficeSource officeSource, java.lang.String location, PropertyList properties)
Loads the
OfficeType
.This is to enable obtaining the type information for the
Office
to allow reflective configuration by theOfficeFloorSource
.- 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
.
-
-