Class SectionSourceContextImpl
- java.lang.Object
-
- net.officefloor.frame.impl.construct.source.SourcePropertiesImpl
-
- net.officefloor.frame.impl.construct.source.SourceContextImpl
-
- net.officefloor.configuration.impl.ConfigurationSourceContextImpl
-
- net.officefloor.compile.impl.section.SectionSourceContextImpl
-
- All Implemented Interfaces:
SectionSourceContext
,ConfigurationContext
,ServiceContext
,SourceContext
,SourceProperties
public class SectionSourceContextImpl extends ConfigurationSourceContextImpl implements SectionSourceContext
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
Constructors Constructor Description SectionSourceContextImpl(boolean isLoadingType, java.lang.String sectionLocation, java.lang.String[] additionalProfiles, PropertyList propertyList, SectionNode sectionNode, NodeContext context)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyList
createPropertyList()
Creates aPropertyList
for loading types.java.lang.String
getSectionLocation()
Obtains the location of theOfficeSection
.FunctionNamespaceType
loadManagedFunctionType(java.lang.String functionNamespace, java.lang.String managedFunctionSourceClassName, PropertyList properties)
Loads theFunctionNamespaceType
.FunctionNamespaceType
loadManagedFunctionType(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
.SectionType
loadSectionType(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String location, PropertyList properties)
Loads theSectionType
.SectionType
loadSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String location, PropertyList properties)
Loads theSectionType
.-
Methods inherited from class net.officefloor.configuration.impl.ConfigurationSourceContextImpl
getConfigurationItem, getOptionalConfigurationItem
-
Methods inherited from class net.officefloor.frame.impl.construct.source.SourceContextImpl
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServices
-
Methods inherited from class net.officefloor.frame.impl.construct.source.SourcePropertiesImpl
addProperty, getProperties, getProperty, getProperty, getPropertyNames
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
SectionSourceContextImpl
public SectionSourceContextImpl(boolean isLoadingType, java.lang.String sectionLocation, java.lang.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 Detail
-
getSectionLocation
public java.lang.String getSectionLocation()
Description copied from interface:SectionSourceContext
Obtains the location of the
OfficeSection
.How "location" is interpreted is for the
SectionSource
.- Specified by:
getSectionLocation
in interfaceSectionSourceContext
- Returns:
- Location of the
OfficeSection
.
-
createPropertyList
public PropertyList createPropertyList()
Description copied from interface:SectionSourceContext
Creates aPropertyList
for loading types.- Specified by:
createPropertyList
in interfaceSectionSourceContext
- Returns:
- New
PropertyList
to aid in loading types.
-
loadManagedFunctionType
public FunctionNamespaceType loadManagedFunctionType(java.lang.String functionNamespace, ManagedFunctionSource managedFunctionSource, PropertyList properties)
Description copied from interface:SectionSourceContext
Loads the
FunctionNamespaceType
.This is to enable obtaining the type information for the
ManagedFunctionSource
to allow reflective configuration by theSectionSource
.- Specified by:
loadManagedFunctionType
in interfaceSectionSourceContext
- Parameters:
functionNamespace
- Name space of theManagedFunctionSource
.managedFunctionSource
-ManagedFunctionSource
.properties
-PropertyList
to configure the implementingManagedFunctionSource
.- Returns:
FunctionNamespaceType
ornull
if fails to load theFunctionNamespaceType
.
-
loadManagedFunctionType
public FunctionNamespaceType loadManagedFunctionType(java.lang.String functionNamespace, java.lang.String managedFunctionSourceClassName, PropertyList properties)
Description copied from interface:SectionSourceContext
Loads the
FunctionNamespaceType
.This is to enable obtaining the type information for the
ManagedFunctionSource
to allow reflective configuration by theSectionSource
.- Specified by:
loadManagedFunctionType
in interfaceSectionSourceContext
- Parameters:
functionNamespace
- Name space of theManagedFunctionSource
.managedFunctionSourceClassName
- Name of the implementingManagedFunctionSource
class. May also be an alias.properties
-PropertyList
to configure the implementingManagedFunctionSource
.- Returns:
FunctionNamespaceType
ornull
if fails to load theFunctionNamespaceType
.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, ManagedObjectSource<?,?> managedObjectSource, PropertyList properties)
Description copied from interface:SectionSourceContext
Loads the
ManagedObjectType
.This is to enable obtaining the type information for the
ManagedObject
to allow reflective configuration by theSectionSource
.- Specified by:
loadManagedObjectType
in interfaceSectionSourceContext
- Parameters:
managedObjectSourceName
- Name of theManagedObjectSource
.managedObjectSource
-ManagedObjectSource
.properties
-PropertyList
to configure theManagedObjectSource
.- Returns:
ManagedObjectType
ornull
if fails to load theManagedObjectType
.
-
loadManagedObjectType
public ManagedObjectType<?> loadManagedObjectType(java.lang.String managedObjectSourceName, java.lang.String managedObjectSourceClassName, PropertyList properties)
Description copied from interface:SectionSourceContext
Loads the
ManagedObjectType
.This is to enable obtaining the type information for the
ManagedObject
to allow reflective configuration by theSectionSource
.- Specified by:
loadManagedObjectType
in interfaceSectionSourceContext
- 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
.
-
loadSectionType
public SectionType loadSectionType(java.lang.String sectionName, SectionSource sectionSource, java.lang.String location, PropertyList properties)
Description copied from interface:SectionSourceContext
Loads the
SectionType
.This is to enable obtaining the type information for the
SubSection
to allow reflective configuration by theSectionSource
.- Specified by:
loadSectionType
in interfaceSectionSourceContext
- Parameters:
sectionName
- Name of theSubSection
.sectionSource
-SectionSource
.location
- Location of theSubSection
.properties
-PropertyList
to configure theSectionSource
.- Returns:
SectionType
ornull
if fails to load theSectionType
.
-
loadSectionType
public SectionType loadSectionType(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String location, PropertyList properties)
Description copied from interface:SectionSourceContext
Loads the
SectionType
.This is to enable obtaining the type information for the
SubSection
to allow reflective configuration by theSectionSource
.- Specified by:
loadSectionType
in interfaceSectionSourceContext
- Parameters:
sectionName
- Name of theSubSection
.sectionSourceClassName
- Name of the implementingSectionSource
class. May also be an alias.location
- Location of theSubSection
.properties
-PropertyList
to configure theSectionSource
.- Returns:
SectionType
ornull
if fails to load theSectionType
.
-
-