public class ServletContextHandler extends java.lang.Object implements DynamicPropertyHandler
DynamicPropertyHandler
interface that provides
access to attributes of a ServletContext
.Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_PROPERTY_COUNT |
Constructor and Description |
---|
ServletContextHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
collectPropertyNames(java.util.HashSet set,
java.lang.Object bean)
Collect the property names from bean, storing in set.
|
java.lang.Object |
getProperty(java.lang.Object context,
java.lang.String property)
Returns the value of the specified dynamic property.
|
java.lang.String[] |
getPropertyNames(java.lang.Object context)
Returns a list of dynamic property names for the supplied object.
|
void |
setProperty(java.lang.Object context,
java.lang.String property,
java.lang.Object value)
Modifies the value of the specified dynamic property.
|
private static final int DEFAULT_PROPERTY_COUNT
public java.lang.String[] getPropertyNames(java.lang.Object context)
DynamicPropertyHandler
getPropertyNames
in interface DynamicPropertyHandler
context
- to inspectprotected void collectPropertyNames(java.util.HashSet set, java.lang.Object bean)
set
- destinationbean
- to readpublic java.lang.Object getProperty(java.lang.Object context, java.lang.String property)
DynamicPropertyHandler
getProperty
in interface DynamicPropertyHandler
context
- to searchproperty
- to retrievepublic void setProperty(java.lang.Object context, java.lang.String property, java.lang.Object value)
DynamicPropertyHandler
setProperty
in interface DynamicPropertyHandler
context
- to modifyproperty
- to modifyvalue
- to set