public class OfficeServletContextManagedObjectSource extends net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource<OfficeServletContextManagedObjectSource.DependencyKeys,net.officefloor.frame.api.build.None> implements net.officefloor.frame.spi.managedobject.CoordinatingManagedObject<OfficeServletContextManagedObjectSource.DependencyKeys>
ManagedObjectSource for the OfficeServletContext.| Modifier and Type | Class and Description |
|---|---|
static class |
OfficeServletContextManagedObjectSource.DependencyKeys
Dependency keys for the
OfficeServletContextManagedObjectSource. |
net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource.DependencyLabeller, net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource.Labeller, net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>, net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource.SpecificationContext| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_FILTER_INSTANCE_INIT_PREFIX
Prefix on property name to obtain Init Parameter name and its
corresponding value.
|
static String |
PROPERTY_FILTER_INSTANCE_NAME_PREFIX
|
static String |
PROPERTY_FILTER_MAPPING_INDEX_PREFIX
Prefix on property name to obtain the
FilterMapping index and its
corresponding Filter name. |
static String |
PROPERTY_FILTER_MAPPING_SERVLET_PREFIX
Prefix on property name to obtain the
FilterMapping
Servlet name. |
static String |
PROPERTY_FILTER_MAPPING_TYPE_PREFIX
Prefix on property name to obtain the
FilterMapping
MappingType. |
static String |
PROPERTY_FILTER_MAPPING_URL_PREFIX
Prefix on property name to obtain the
FilterMapping URL pattern. |
static String |
PROPERTY_PREFIX_FILE_EXTENSION_TO_MIME_TYPE
Property prefix to file extension to MIME type mapping.
|
static String |
PROPERTY_PREFIX_INIT_PARAMETER
Property prefix to an init parameter.
|
static String |
PROPERTY_SERVLET_CONTEXT_NAME
Property name to specify the
ServletContext name. |
| Constructor and Description |
|---|
OfficeServletContextManagedObjectSource() |
| Modifier and Type | Method and Description |
|---|---|
protected net.officefloor.frame.spi.managedobject.ManagedObject |
getManagedObject() |
Object |
getObject() |
Map<String,String> |
loadMappings(String prefix,
net.officefloor.frame.spi.managedobject.source.ManagedObjectSourceContext<net.officefloor.frame.api.build.None> context,
Map<String,String> mappings)
Extracts the mapping from the
ManagedObjectSourceContext. |
protected void |
loadMetaData(net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource.MetaDataContext<OfficeServletContextManagedObjectSource.DependencyKeys,net.officefloor.frame.api.build.None> context) |
void |
loadObjects(net.officefloor.frame.spi.managedobject.ObjectRegistry<OfficeServletContextManagedObjectSource.DependencyKeys> registry) |
protected void |
loadSpecification(net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource.SpecificationContext context) |
sourceManagedObjectpublic static final String PROPERTY_SERVLET_CONTEXT_NAME
ServletContext name.public static final String PROPERTY_PREFIX_INIT_PARAMETER
public static final String PROPERTY_PREFIX_FILE_EXTENSION_TO_MIME_TYPE
public static final String PROPERTY_FILTER_INSTANCE_NAME_PREFIX
public static final String PROPERTY_FILTER_INSTANCE_INIT_PREFIX
public static final String PROPERTY_FILTER_MAPPING_INDEX_PREFIX
FilterMapping index and its
corresponding Filter name.public static final String PROPERTY_FILTER_MAPPING_URL_PREFIX
FilterMapping URL pattern.public static final String PROPERTY_FILTER_MAPPING_SERVLET_PREFIX
FilterMapping
Servlet name.public static final String PROPERTY_FILTER_MAPPING_TYPE_PREFIX
FilterMapping
MappingType.public OfficeServletContextManagedObjectSource()
public Map<String,String> loadMappings(String prefix, net.officefloor.frame.spi.managedobject.source.ManagedObjectSourceContext<net.officefloor.frame.api.build.None> context, Map<String,String> mappings)
ManagedObjectSourceContext.prefix - Prefix of properties with remaining being the key.context - ManagedObjectSourceContext.mappings - Mappings to be loaded..protected void loadSpecification(net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource.SpecificationContext context)
loadSpecification in class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource<OfficeServletContextManagedObjectSource.DependencyKeys,net.officefloor.frame.api.build.None>protected void loadMetaData(net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource.MetaDataContext<OfficeServletContextManagedObjectSource.DependencyKeys,net.officefloor.frame.api.build.None> context) throws Exception
loadMetaData in class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource<OfficeServletContextManagedObjectSource.DependencyKeys,net.officefloor.frame.api.build.None>Exceptionprotected net.officefloor.frame.spi.managedobject.ManagedObject getManagedObject()
throws Throwable
getManagedObject in class net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource<OfficeServletContextManagedObjectSource.DependencyKeys,net.officefloor.frame.api.build.None>Throwablepublic void loadObjects(net.officefloor.frame.spi.managedobject.ObjectRegistry<OfficeServletContextManagedObjectSource.DependencyKeys> registry) throws Throwable
loadObjects in interface net.officefloor.frame.spi.managedobject.CoordinatingManagedObject<OfficeServletContextManagedObjectSource.DependencyKeys>ThrowableCopyright © 2005–2015. All rights reserved.