|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fulcrum.intake.IntakeServiceFacade
public class 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?
Constructor Summary | |
---|---|
IntakeServiceFacade()
|
Method Summary | |
---|---|
static 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 |
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. |
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[] |
getGroupNames()
Names of all the defined groups. |
static int |
getSize(String groupName)
Gets the current size of the pool for a named group. |
static boolean |
isInitialized()
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntakeServiceFacade()
Method Detail |
---|
public static boolean isInitialized()
public static Group getGroup(String groupName) throws IntakeException
groupName
- the name of the group.
IntakeException
- if recycling fails.public static void releaseGroup(Group instance) throws IntakeException
instance
- the object instance to recycle.
IntakeException
- A non existant group was passedpublic static int getSize(String groupName) throws IntakeException
groupName
- the name of the group.
IntakeException
- A non existant group was passedpublic static String[] getGroupNames()
public static String getGroupKey(String groupName)
groupName
- the name of the group.
public static String getGroupName(String groupKey)
groupKey
- the key.
public static Method getFieldSetter(String className, String propName) throws IntrospectionException, ClassNotFoundException
className
- the name of the object.propName
- the name of the property.
ClassNotFoundException
IntrospectionException
public static Method getFieldGetter(String className, String propName) throws IntrospectionException, ClassNotFoundException
className
- the name of the object.propName
- the name of the property.
ClassNotFoundException
IntrospectionException
public static void setIntakeService(IntakeService service)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |