Package org.apache.fulcrum.intake
Klasse IntakeServiceFacade
java.lang.Object
org.apache.fulcrum.intake.IntakeServiceFacade
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
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Method
getFieldGetter
(String className, String propName) Gets the Method that can be used to get a property value.static Method
getFieldSetter
(String className, String propName) Gets the Method that can be used to set a property.static Group
Gets an instance of a named group either from the pool or by calling the Factory Service if the pool is empty.static String
getGroupKey
(String groupName) Gets the key (usually a short identifier) for a group.static String
getGroupName
(String groupKey) Gets the group name given its key.static String[]
Names of all the defined groups.static int
Gets the current size of the pool for a named group.static boolean
Return whether the intake service has been initialized.static void
releaseGroup
(Group instance) Puts a group back to the pool.static void
setIntakeService
(IntakeService service)
-
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
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
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
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
Names of all the defined groups.- Gibt zurück:
- array of names.
-
getGroupKey
Gets the key (usually a short identifier) for a group.- Parameter:
groupName
- the name of the group.- Gibt zurück:
- the the key.
-
getGroupName
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 loadedIntrospectionException
- 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 loadedIntrospectionException
- if the property getter could not be called
-
setIntakeService
-