Class SectionSourceContextImpl
- All Implemented Interfaces:
SectionSourceContext,ConfigurationContext,ServiceContext,SourceContext,SourceProperties
SectionSourceContext 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
ConstructorsConstructorDescriptionSectionSourceContextImpl(boolean isLoadingType, String sectionLocation, String[] additionalProfiles, PropertyList propertyList, SectionNode sectionNode, NodeContext context) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionCreates aPropertyListfor loading types.Obtains the location of theOfficeSection.loadManagedFunctionType(String functionNamespace, String managedFunctionSourceClassName, PropertyList properties) Loads theFunctionNamespaceType.loadManagedFunctionType(String functionNamespace, ManagedFunctionSource managedFunctionSource, PropertyList properties) Loads theFunctionNamespaceType.loadManagedObjectType(String managedObjectSourceName, String managedObjectSourceClassName, PropertyList properties) Loads theManagedObjectType.loadManagedObjectType(String managedObjectSourceName, ManagedObjectSource<?, ?> managedObjectSource, PropertyList properties) Loads theManagedObjectType.loadSectionType(String sectionName, String sectionSourceClassName, String location, PropertyList properties) Loads theSectionType.loadSectionType(String sectionName, SectionSource sectionSource, String location, PropertyList properties) Loads theSectionType.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
-
SectionSourceContextImpl
public SectionSourceContextImpl(boolean isLoadingType, String sectionLocation, String[] additionalProfiles, PropertyList propertyList, SectionNode sectionNode, NodeContext context) Initiate.- Parameters:
isLoadingType- Indicates if loading type.sectionLocation- Location of theSectionNode.additionalProfiles- Additional profiles.propertyList-PropertyList.sectionNode- ParentSectionNode.context-NodeContext.
-
-
Method Details
-
getSectionLocation
Description copied from interface:SectionSourceContextObtains the location of the
OfficeSection.How "location" is interpreted is for the
SectionSource.- Specified by:
getSectionLocationin interfaceSectionSourceContext- Returns:
- Location of the
OfficeSection.
-
createPropertyList
Description copied from interface:SectionSourceContextCreates aPropertyListfor loading types.- Specified by:
createPropertyListin interfaceSectionSourceContext- Returns:
- New
PropertyListto aid in loading types.
-
loadManagedFunctionType
public FunctionNamespaceType loadManagedFunctionType(String functionNamespace, ManagedFunctionSource managedFunctionSource, PropertyList properties) Description copied from interface:SectionSourceContextLoads the
FunctionNamespaceType.This is to enable obtaining the type information for the
ManagedFunctionSourceto allow reflective configuration by theSectionSource.- Specified by:
loadManagedFunctionTypein interfaceSectionSourceContext- Parameters:
functionNamespace- Name space of theManagedFunctionSource.managedFunctionSource-ManagedFunctionSource.properties-PropertyListto configure the implementingManagedFunctionSource.- Returns:
FunctionNamespaceTypeornullif fails to load theFunctionNamespaceType.
-
loadManagedFunctionType
public FunctionNamespaceType loadManagedFunctionType(String functionNamespace, String managedFunctionSourceClassName, PropertyList properties) Description copied from interface:SectionSourceContextLoads the
FunctionNamespaceType.This is to enable obtaining the type information for the
ManagedFunctionSourceto allow reflective configuration by theSectionSource.- Specified by:
loadManagedFunctionTypein interfaceSectionSourceContext- 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
public ManagedObjectType<?> loadManagedObjectType(String managedObjectSourceName, ManagedObjectSource<?, ?> managedObjectSource, PropertyList properties) Description copied from interface:SectionSourceContextLoads the
ManagedObjectType.This is to enable obtaining the type information for the
ManagedObjectto allow reflective configuration by theSectionSource.- Specified by:
loadManagedObjectTypein interfaceSectionSourceContext- Parameters:
managedObjectSourceName- Name of theManagedObjectSource.managedObjectSource-ManagedObjectSource.properties-PropertyListto configure theManagedObjectSource.- Returns:
ManagedObjectTypeornullif fails to load theManagedObjectType.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(String managedObjectSourceName, String managedObjectSourceClassName, PropertyList properties) Description copied from interface:SectionSourceContextLoads the
ManagedObjectType.This is to enable obtaining the type information for the
ManagedObjectto allow reflective configuration by theSectionSource.- Specified by:
loadManagedObjectTypein interfaceSectionSourceContext- 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
public SectionType loadSectionType(String sectionName, SectionSource sectionSource, String location, PropertyList properties) Description copied from interface:SectionSourceContextLoads the
SectionType.This is to enable obtaining the type information for the
SubSectionto allow reflective configuration by theSectionSource.- Specified by:
loadSectionTypein interfaceSectionSourceContext- Parameters:
sectionName- Name of theSubSection.sectionSource-SectionSource.location- Location of theSubSection.properties-PropertyListto configure theSectionSource.- Returns:
SectionTypeornullif fails to load theSectionType.
-
loadSectionType
public SectionType loadSectionType(String sectionName, String sectionSourceClassName, String location, PropertyList properties) Description copied from interface:SectionSourceContextLoads the
SectionType.This is to enable obtaining the type information for the
SubSectionto allow reflective configuration by theSectionSource.- Specified by:
loadSectionTypein interfaceSectionSourceContext- 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.
-