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
  • Konstruktordetails

    • IntakeServiceImpl

      public IntakeServiceImpl()
  • Methodendetails

    • getGroup

      public Group getGroup(String groupName) throws IntakeException
      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 Schnittstelle IntakeService
      Parameter:
      groupName - the name of the group.
      Gibt zurück:
      a Group instance.
      Löst aus:
      IntakeException - if recycling fails.
    • releaseGroup

      public void releaseGroup(Group instance) throws IntakeException
      Puts a Group back to the pool.
      Angegeben von:
      releaseGroup in Schnittstelle IntakeService
      Parameter:
      instance - the object instance to recycle.
      Löst aus:
      IntakeException - The passed group name does not exist.
    • getSize

      public int getSize(String groupName) throws IntakeException
      Gets the current size of the pool for a group.
      Angegeben von:
      getSize in Schnittstelle IntakeService
      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

      public String[] getGroupNames()
      Names of all the defined groups.
      Angegeben von:
      getGroupNames in Schnittstelle IntakeService
      Gibt zurück:
      array of names.
    • getGroupKey

      public String getGroupKey(String groupName)
      Gets the key (usually a short identifier) for a group.
      Angegeben von:
      getGroupKey in Schnittstelle IntakeService
      Parameter:
      groupName - the name of the group.
      Gibt zurück:
      the the key.
    • getGroupName

      public String getGroupName(String groupKey)
      Gets the group name given its key.
      Angegeben von:
      getGroupName in Schnittstelle IntakeService
      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 Schnittstelle IntakeService
      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 loaded
      IntrospectionException - 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 Schnittstelle IntakeService
      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 loaded
      IntrospectionException - 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 Schnittstelle org.apache.avalon.framework.configuration.Configurable
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
    • initialize

      public void initialize() throws Exception
      Avalon component lifecycle method Initializes the service by loading xml rule files and creating the Intake groups.
      Angegeben von:
      initialize in Schnittstelle org.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 is File
      Angegeben von:
      contextualize in Schnittstelle org.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:
      • Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
    • 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 Schnittstelle org.apache.avalon.framework.service.Serviceable
      Parameter:
      manager - the service manager
      Löst aus:
      org.apache.avalon.framework.service.ServiceException - generic exception
      Siehe auch:
      • Serviceable.service(org.apache.avalon.framework.service.ServiceManager)