Interface SectionSourceContext
-
- All Superinterfaces:
ConfigurationContext,SourceContext,SourceProperties
- All Known Implementing Classes:
SectionSourceContextImpl
public interface SectionSourceContext extends SourceContext, ConfigurationContext
Context for loading aSectionType.- 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 aPropertyListfor loading types.java.lang.StringgetSectionLocation()Obtains the location of theOfficeSection.FunctionNamespaceTypeloadManagedFunctionType(java.lang.String functionNamespace, java.lang.String managedFunctionSourceClassName, PropertyList properties)Loads theFunctionNamespaceType.FunctionNamespaceTypeloadManagedFunctionType(java.lang.String functionNamespace, ManagedFunctionSource managedFunctionSource, PropertyList properties)Loads theFunctionNamespaceType.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.SectionTypeloadSectionType(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String location, PropertyList properties)Loads theSectionType.SectionTypeloadSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String location, PropertyList properties)Loads theSectionType.-
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
-
getSectionLocation
java.lang.String getSectionLocation()
Obtains the location of the
OfficeSection.How "location" is interpreted is for the
SectionSource.- Returns:
- Location of the
OfficeSection.
-
createPropertyList
PropertyList createPropertyList()
Creates aPropertyListfor loading types.- Returns:
- New
PropertyListto aid in loading types.
-
loadManagedFunctionType
FunctionNamespaceType loadManagedFunctionType(java.lang.String functionNamespace, ManagedFunctionSource managedFunctionSource, PropertyList properties)
Loads the
FunctionNamespaceType.This is to enable obtaining the type information for the
ManagedFunctionSourceto allow reflective configuration by theSectionSource.- Parameters:
functionNamespace- Name space of theManagedFunctionSource.managedFunctionSource-ManagedFunctionSource.properties-PropertyListto configure the implementingManagedFunctionSource.- Returns:
FunctionNamespaceTypeornullif fails to load theFunctionNamespaceType.
-
loadManagedFunctionType
FunctionNamespaceType loadManagedFunctionType(java.lang.String functionNamespace, java.lang.String managedFunctionSourceClassName, PropertyList properties)
Loads the
FunctionNamespaceType.This is to enable obtaining the type information for the
ManagedFunctionSourceto allow reflective configuration by theSectionSource.- Parameters:
functionNamespace- Name space of theManagedFunctionSource.managedFunctionSourceClassName- Name of the implementingManagedFunctionSourceclass. May also be an alias.properties-PropertyListto configure the implementingManagedFunctionSource.- Returns:
FunctionNamespaceTypeornullif fails to load theFunctionNamespaceType.
-
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 theSectionSource.- Parameters:
managedObjectSourceName- Name of theManagedObjectSource.managedObjectSource-ManagedObjectSource.properties-PropertyListto configure theManagedObjectSource.- Returns:
ManagedObjectTypeornullif fails to load theManagedObjectType.
-
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 theSectionSource.- 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.
-
loadSectionType
SectionType loadSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String location, PropertyList properties)
Loads the
SectionType.This is to enable obtaining the type information for the
SubSectionto allow reflective configuration by theSectionSource.- Parameters:
sectionName- Name of theSubSection.sectionSource-SectionSource.location- Location of theSubSection.properties-PropertyListto configure theSectionSource.- Returns:
SectionTypeornullif fails to load theSectionType.
-
loadSectionType
SectionType loadSectionType(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String location, PropertyList properties)
Loads the
SectionType.This is to enable obtaining the type information for the
SubSectionto allow reflective configuration by theSectionSource.- Parameters:
sectionName- Name of theSubSection.sectionSourceClassName- Name of the implementingSectionSourceclass. May also be an alias.location- Location of theSubSection.properties-PropertyListto configure theSectionSource.- Returns:
SectionTypeornullif fails to load theSectionType.
-
-