|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This service provides access to input processing objects based on an XML specification.
Field Summary | |
static int |
DEFAULT_POOL_CAPACITY
The default pool capacity. |
static java.lang.String |
SERVICE_NAME
The key under which this service is stored in TurbineServices. |
static java.lang.String |
XML_PATH
The property specifying the location of the xml specification. |
Method Summary | |
void |
clearPool()
Clears all instances from the pool. |
void |
clearPool(java.lang.String groupName)
Clears instances of a named group from the pool. |
int |
getCapacity(java.lang.String groupName)
Gets the capacity of the pool for a named group. |
java.lang.reflect.Method |
getFieldGetter(java.lang.String className,
java.lang.String propName)
Gets the Method that can be used to get a property value. |
java.lang.reflect.Method |
getFieldSetter(java.lang.String className,
java.lang.String propName)
Gets the Method that can be used to set a property. |
Group |
getGroup(java.lang.String groupName)
Gets an instance of a named group either from the pool or by calling the Factory Service if the pool is empty. |
java.lang.String |
getGroupKey(java.lang.String groupName)
Gets the key (usually a short identifier) for a group. |
java.lang.String |
getGroupName(java.lang.String groupKey)
Gets the group name given its key. |
java.lang.String[] |
getGroupNames()
Names of all the defined groups. |
int |
getSize(java.lang.String groupName)
Gets the current size of the pool for a named group. |
boolean |
releaseGroup(Group instance)
Puts a group back to the pool. |
void |
setCapacity(java.lang.String groupName,
int capacity)
Sets the capacity of the pool for a named group. |
Field Detail |
public static final java.lang.String SERVICE_NAME
public static final java.lang.String XML_PATH
public static final int DEFAULT_POOL_CAPACITY
Method Detail |
public Group getGroup(java.lang.String groupName) throws TurbineException
groupName
- the name of the group.TurbineException
- if recycling fails.public boolean releaseGroup(Group instance)
instance
- the object instance to recycle.public int getCapacity(java.lang.String groupName)
groupName
- the name of the group.public void setCapacity(java.lang.String groupName, int capacity)
groupName
- the name of the group.capacity
- the new capacity.public int getSize(java.lang.String groupName)
groupName
- the name of the group.public void clearPool(java.lang.String groupName)
groupName
- the name of the group.public void clearPool()
public java.lang.String[] getGroupNames()
public java.lang.String getGroupKey(java.lang.String groupName)
groupName
- the name of the group.public java.lang.String getGroupName(java.lang.String groupKey)
the
- the key.public java.lang.reflect.Method getFieldSetter(java.lang.String className, java.lang.String propName)
className
- the name of the object.propName
- the name of the property.public java.lang.reflect.Method getFieldGetter(java.lang.String className, java.lang.String propName)
className
- the name of the object.propName
- the name of the property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |