|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.intake.IntakeServiceImpl
public class IntakeServiceImpl
This service provides access to input processing objects based on an XML specification.
| Field Summary |
|---|
| Fields inherited from interface org.apache.fulcrum.intake.IntakeService |
|---|
DEFAULT_POOL_CAPACITY, ROLE, SERIAL_XML, SERIAL_XML_DEFAULT, XML_PATH_DEFAULT, XML_PATHS |
| Constructor Summary | |
|---|---|
IntakeServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Avalon component lifecycle method |
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
Method |
getFieldGetter(String className,
String propName)
Gets the Method that can be used to get a property value. |
Method |
getFieldSetter(String className,
String propName)
Gets the Method that can be used to set a property. |
Group |
getGroup(String groupName)
Gets an instance of a named group either from the pool or by calling the Factory Service if the pool is empty. |
String |
getGroupKey(String groupName)
Gets the key (usually a short identifier) for a group. |
String |
getGroupName(String groupKey)
Gets the group name given its key. |
String[] |
getGroupNames()
Names of all the defined groups. |
int |
getSize(String groupName)
Gets the current size of the pool for a group. |
void |
initialize()
Avalon component lifecycle method Initializes the service by loading default class loaders and customized object factories. |
void |
releaseGroup(Group instance)
Puts a Group back to the pool. |
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
Avalon component lifecycle method |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntakeServiceImpl()
| Method Detail |
|---|
public Group getGroup(String groupName)
throws IntakeException
getGroup in interface IntakeServicegroupName - the name of the group.
IntakeException - if recycling fails.
public void releaseGroup(Group instance)
throws IntakeException
releaseGroup in interface IntakeServiceinstance - the object instance to recycle.
IntakeException - The passed group name does not exist.
public int getSize(String groupName)
throws IntakeException
getSize in interface IntakeServicegroupName - the name of the group.
IntakeException - The passed group name does not exist.public String[] getGroupNames()
getGroupNames in interface IntakeServicepublic String getGroupKey(String groupName)
getGroupKey in interface IntakeServicegroupName - the name of the group.
public String getGroupName(String groupKey)
getGroupName in interface IntakeServicegroupKey - the key.
public Method getFieldSetter(String className,
String propName)
throws ClassNotFoundException,
IntrospectionException
getFieldSetter in interface IntakeServiceclassName - the name of the object.propName - the name of the property.
ClassNotFoundException
IntrospectionException
public Method getFieldGetter(String className,
String propName)
throws ClassNotFoundException,
IntrospectionException
getFieldGetter in interface IntakeServiceclassName - the name of the object.propName - the name of the property.
ClassNotFoundException
IntrospectionException
public void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationException
public void initialize()
throws Exception
initialize in interface org.apache.avalon.framework.activity.InitializableException - if initialization fails.
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||