Klasse IntakeServiceFacade

java.lang.Object
org.apache.fulcrum.intake.IntakeServiceFacade

public class IntakeServiceFacade extends Object
This is a Facade class for IntakeService. This class provides static methods that call related methods of the implementation of the IntakeService used by the System, according to the settings in your intake.xml file. Note: How should a facade class work? It seems to me that maybe it should only have a hook into the Avalon Component Manager somehow?
Version:
$Id$
Autor:
John McNally, Quinton McCombs
  • Konstruktordetails

    • IntakeServiceFacade

      public IntakeServiceFacade()
  • Methodendetails

    • isInitialized

      public static boolean isInitialized()
      Return whether the intake service has been initialized.
      Gibt zurück:
      true if the service has been initialized
    • getGroup

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

      public static void releaseGroup(Group instance) throws IntakeException
      Puts a group back to the pool.
      Parameter:
      instance - the object instance to recycle.
      Löst aus:
      IntakeException - A non existant group was passed
    • getSize

      public static int getSize(String groupName) throws IntakeException
      Gets the current size of the pool for a named group.
      Parameter:
      groupName - the name of the group.
      Gibt zurück:
      the current pool size
      Löst aus:
      IntakeException - A non-existent group was passed
    • getGroupNames

      public static String[] getGroupNames()
      Names of all the defined groups.
      Gibt zurück:
      array of names.
    • getGroupKey

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

      public static String getGroupName(String groupKey)
      Gets the group name given its key.
      Parameter:
      groupKey - the key.
      Gibt zurück:
      groupName the name of the group.
    • getFieldSetter

      public static Method getFieldSetter(String className, String propName) throws IntrospectionException, ClassNotFoundException
      Gets the Method that can be used to set a property.
      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 static Method getFieldGetter(String className, String propName) throws IntrospectionException, ClassNotFoundException
      Gets the Method that can be used to get a property value.
      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
    • setIntakeService

      public static void setIntakeService(IntakeService service)