Package org.apache.fulcrum.intake
Klasse IntakeServiceImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.intake.IntakeServiceImpl
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.activity.Initializable
,org.apache.avalon.framework.configuration.Configurable
,org.apache.avalon.framework.context.Contextualizable
,org.apache.avalon.framework.logger.LogEnabled
,org.apache.avalon.framework.service.Serviceable
,IntakeService
public class IntakeServiceImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements IntakeService, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.service.Serviceable
This service provides access to input processing objects based on an XML
specification.
avalon.component name="intake"
avalon.service type="org.apache.fulcrum.intake.IntakeService"
- Version:
- $Id$
- Autor:
- John McNally, Henning P. Schmiedehausen, Quinton McCombs
-
Feldübersicht
Von Schnittstelle geerbte Felder org.apache.fulcrum.intake.IntakeService
DEFAULT_POOL_CAPACITY, ROLE, SERIAL_XML, SERIAL_XML_DEFAULT, XML_PATH_DEFAULT, XML_PATHS
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
configure
(org.apache.avalon.framework.configuration.Configuration conf) Avalon component lifecycle methodvoid
contextualize
(org.apache.avalon.framework.context.Context context) Note that the avalon.entry key="urn:avalon:home" and the type isFile
getFieldGetter
(String className, String propName) Gets the Method that can be used to get a property value.getFieldSetter
(String className, String propName) Gets the Method that can be used to set a property.Gets an instance of a named group either from the pool or by calling the Factory Service if the pool is empty.getGroupKey
(String groupName) Gets the key (usually a short identifier) for a group.getGroupName
(String groupKey) Gets the group name given its key.String[]
Names of all the defined groups.int
Gets the current size of the pool for a group.void
Avalon component lifecycle method Initializes the service by loading xml rule files and creating the Intake groups.void
releaseGroup
(Group instance) Puts a Group back to the pool.void
service
(org.apache.avalon.framework.service.ServiceManager manager) Avalon component lifecycle method avalon.dependency type="org.apache.fulcrum.localization.LocalizationService"Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Konstruktordetails
-
IntakeServiceImpl
public IntakeServiceImpl()
-
-
Methodendetails
-
getGroup
Gets an instance of a named group either from the pool or by calling the Factory Service if the pool is empty.- Angegeben von:
getGroup
in SchnittstelleIntakeService
- Parameter:
groupName
- the name of the group.- Gibt zurück:
- a Group instance.
- Löst aus:
IntakeException
- if recycling fails.
-
releaseGroup
Puts a Group back to the pool.- Angegeben von:
releaseGroup
in SchnittstelleIntakeService
- Parameter:
instance
- the object instance to recycle.- Löst aus:
IntakeException
- The passed group name does not exist.
-
getSize
Gets the current size of the pool for a group.- Angegeben von:
getSize
in SchnittstelleIntakeService
- Parameter:
groupName
- the name of the group.- Gibt zurück:
- the size of the group pool
- Löst aus:
IntakeException
- The passed group name does not exist.
-
getGroupNames
Names of all the defined groups.- Angegeben von:
getGroupNames
in SchnittstelleIntakeService
- Gibt zurück:
- array of names.
-
getGroupKey
Gets the key (usually a short identifier) for a group.- Angegeben von:
getGroupKey
in SchnittstelleIntakeService
- Parameter:
groupName
- the name of the group.- Gibt zurück:
- the the key.
-
getGroupName
Gets the group name given its key.- Angegeben von:
getGroupName
in SchnittstelleIntakeService
- Parameter:
groupKey
- the key.- Gibt zurück:
- groupName the name of the group.
-
getFieldSetter
public Method getFieldSetter(String className, String propName) throws ClassNotFoundException, IntrospectionException Gets the Method that can be used to set a property.- Angegeben von:
getFieldSetter
in SchnittstelleIntakeService
- Parameter:
className
- the name of the object.propName
- the name of the property.- Gibt zurück:
- the setter.
- Löst aus:
ClassNotFoundException
- if the class specified could not be loadedIntrospectionException
- if the property setter could not be called
-
getFieldGetter
public Method getFieldGetter(String className, String propName) throws ClassNotFoundException, IntrospectionException Gets the Method that can be used to get a property value.- Angegeben von:
getFieldGetter
in SchnittstelleIntakeService
- Parameter:
className
- the name of the object.propName
- the name of the property.- Gibt zurück:
- the getter.
- Löst aus:
ClassNotFoundException
- if the class specified could not be loadedIntrospectionException
- if the property getter could not be called
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException Avalon component lifecycle method- Angegeben von:
configure
in Schnittstelleorg.apache.avalon.framework.configuration.Configurable
- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException
-
initialize
Avalon component lifecycle method Initializes the service by loading xml rule files and creating the Intake groups.- Angegeben von:
initialize
in Schnittstelleorg.apache.avalon.framework.activity.Initializable
- Löst aus:
Exception
- if initialization fails.
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException Note that the avalon.entry key="urn:avalon:home" and the type isFile
- Angegeben von:
contextualize
in Schnittstelleorg.apache.avalon.framework.context.Contextualizable
- Parameter:
context
- the Context to use- Löst aus:
org.apache.avalon.framework.context.ContextException
- if the context is not found- Siehe auch:
-
service
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException Avalon component lifecycle method avalon.dependency type="org.apache.fulcrum.localization.LocalizationService"- Angegeben von:
service
in Schnittstelleorg.apache.avalon.framework.service.Serviceable
- Parameter:
manager
- the service manager- Löst aus:
org.apache.avalon.framework.service.ServiceException
- generic exception- Siehe auch:
-