|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bss.esb.EsbConfigManager
Helper class for initializing the ESB configuration by creating
appropriate bean classes as specified in the EsbConfiguration XML.
It then puts all the created beans in a Map
.
Information about the configured routes and retry policies is also
placed in separate Map
objects.
RouteInfo
,
RetryPolicyInfo
Constructor Summary | |
EsbConfigManager()
|
Method Summary | |
void |
clear()
Clears all the object maps maintained by this class. |
java.util.Map |
getBeansMap()
Returns the map holding the bean instances as per the configuration in EsbConfiguration XML. |
java.util.Map |
getRetryPolicyMap()
Returns the map holding the RetryPolicyInfo objects as per
the configuration in EsbConfiguration XML. |
java.util.Map |
getRouteMap()
Returns the map holding RouteInfo objects. |
void |
init(java.lang.String configUrl)
Initializes the various object maps as per the configuration defined in the EsbConfiguration XML. |
static java.lang.Object |
invokeMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Class[] argTypes,
java.lang.Object[] args)
Uses reflection to invoke a given method on a given class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EsbConfigManager()
Method Detail |
public final java.util.Map getRouteMap()
RouteInfo
objects.
public final java.util.Map getBeansMap()
public final java.util.Map getRetryPolicyMap()
RetryPolicyInfo
objects as per
the configuration in EsbConfiguration XML.
public void clear()
public void init(java.lang.String configUrl) throws java.lang.Exception
configUrl
-
java.lang.Exception
public static java.lang.Object invokeMethod(java.lang.Object obj, java.lang.String methodName, java.lang.Class[] argTypes, java.lang.Object[] args) throws java.lang.Exception
obj
- Instance of the class on which to call the methodmethodName
- Name of the method to be invokedargTypes
- Class[] containing the argument typesargs
- Object[] containing the actual param values
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |