|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource<D,F>
net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource<OfficeServletContextManagedObjectSource.DependencyKeys,None>
net.officefloor.plugin.servlet.context.source.OfficeServletContextManagedObjectSource
public class OfficeServletContextManagedObjectSource
ManagedObjectSource for the OfficeServletContext.
| Nested Class Summary | |
|---|---|
static class |
OfficeServletContextManagedObjectSource.DependencyKeys
Dependency keys for the OfficeServletContextManagedObjectSource. |
| Nested classes/interfaces inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource |
|---|
AbstractAsyncManagedObjectSource.Labeller, AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext |
| Field Summary | |
|---|---|
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
Prefix on property name to obtain the Filter name and its
corresponding Filter Class name. |
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 Summary | |
|---|---|
OfficeServletContextManagedObjectSource()
|
|
| Method Summary | |
|---|---|
protected ManagedObject |
getManagedObject()
|
Object |
getObject()
|
Map<String,String> |
loadMappings(String prefix,
ManagedObjectSourceContext<None> context,
Map<String,String> mappings)
Extracts the mapping from the ManagedObjectSourceContext. |
protected void |
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<OfficeServletContextManagedObjectSource.DependencyKeys,None> context)
|
void |
loadObjects(ObjectRegistry<OfficeServletContextManagedObjectSource.DependencyKeys> registry)
|
protected void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
|
| Methods inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource |
|---|
sourceManagedObject |
| Methods inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource |
|---|
getMetaData, getSpecification, init, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public 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
Filter name and its
corresponding Filter Class name.
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.
| Constructor Detail |
|---|
public OfficeServletContextManagedObjectSource()
| Method Detail |
|---|
public Map<String,String> loadMappings(String prefix,
ManagedObjectSourceContext<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(AbstractAsyncManagedObjectSource.SpecificationContext context)
loadSpecification in class AbstractAsyncManagedObjectSource<OfficeServletContextManagedObjectSource.DependencyKeys,None>
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<OfficeServletContextManagedObjectSource.DependencyKeys,None> context)
throws Exception
loadMetaData in class AbstractAsyncManagedObjectSource<OfficeServletContextManagedObjectSource.DependencyKeys,None>Exception
protected ManagedObject getManagedObject()
throws Throwable
getManagedObject in class AbstractManagedObjectSource<OfficeServletContextManagedObjectSource.DependencyKeys,None>Throwable
public void loadObjects(ObjectRegistry<OfficeServletContextManagedObjectSource.DependencyKeys> registry)
throws Throwable
loadObjects in interface CoordinatingManagedObject<OfficeServletContextManagedObjectSource.DependencyKeys>Throwable
public Object getObject()
throws Throwable
getObject in interface ManagedObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||