|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This service provides access to input processing objects based on an XML specification.
Localization of Intake's error messages can be accomplished
using Turbine's LocalizationTool
from a Velocity template
as follows:
$l10n.get($intake.SomeGroup.SomeField.Message)
Field Summary | |
static int |
DEFAULT_POOL_CAPACITY
The default pool capacity. |
static java.lang.String |
SERIAL_XML
The property specifying the location where a serialized version of the xml specification can be written for faster restarts.. |
static java.lang.String |
SERIAL_XML_DEFAULT
The default location where a serialized version of the xml specification can be written for faster restarts.. |
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. |
static java.lang.String |
XML_PATH_DEFAULT
The default location of the xml specification. |
Method Summary | |
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. |
void |
releaseGroup(Group instance)
Puts a group back to the pool. |
Field Detail |
public static final java.lang.String SERVICE_NAME
public static final java.lang.String XML_PATH
public static final java.lang.String XML_PATH_DEFAULT
public static final java.lang.String SERIAL_XML
public static final java.lang.String SERIAL_XML_DEFAULT
public static final int DEFAULT_POOL_CAPACITY
Method Detail |
public Group getGroup(java.lang.String groupName) throws IntakeException
groupName
- the name of the group.
IntakeException
- if recycling fails.public void releaseGroup(Group instance) throws IntakeException
instance
- the object instance to recycle.
IntakeException
- The passed group name does not exist.public int getSize(java.lang.String groupName) throws IntakeException
groupName
- the name of the group.
IntakeException
- The passed group name does not exist.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)
groupKey
- the key.
public java.lang.reflect.Method getFieldSetter(java.lang.String className, java.lang.String propName) throws java.lang.ClassNotFoundException, java.beans.IntrospectionException
className
- the name of the object.propName
- the name of the property.
java.lang.ClassNotFoundException
java.beans.IntrospectionException
public java.lang.reflect.Method getFieldGetter(java.lang.String className, java.lang.String propName) throws java.lang.ClassNotFoundException, java.beans.IntrospectionException
className
- the name of the object.propName
- the name of the property.
java.lang.ClassNotFoundException
java.beans.IntrospectionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |