|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.q2.QFactory
public class QFactory
| Constructor Summary | |
|---|---|
QFactory(ObjectName loaderName,
Q2 q2)
|
|
| Method Summary | |
|---|---|
void |
configureQBean(MBeanServer server,
ObjectName objectName,
org.jdom.Element e)
|
ObjectInstance |
createQBean(Q2 server,
org.jdom.Element e,
Object obj)
|
void |
destroyQBean(Q2 server,
ObjectName objectName,
Object obj)
|
AttributeList |
getAttributeList(org.jdom.Element e)
|
String |
getAttributeName(String name)
sets the first character of the string to the upper case |
protected Collection |
getCollection(Class type,
org.jdom.Element e)
Creats a collection from a definition element with the format. |
Configuration |
getConfiguration(org.jdom.Element e)
|
void |
getExtraPath(QClassLoader loader,
org.jdom.Element e)
|
protected Object |
getObject(org.jdom.Element childElement)
creates an object from a definition element. |
Q2 |
getQ2()
|
Object |
instantiate(Q2 server,
org.jdom.Element e)
|
static void |
invoke(Object obj,
String m,
Object p)
Try to invoke a method (usually a setter) on the given object silently ignoring if method does not exist |
static void |
invoke(Object obj,
String m,
Object p,
Class pc)
Try to invoke a method (usually a setter) on the given object silently ignoring if method does not exist |
Object |
newInstance(String clazz)
|
void |
setAttribute(MBeanServer server,
ObjectName objectName,
String attribute,
Object value)
|
void |
setConfiguration(Object obj,
org.jdom.Element e)
|
void |
setLogger(Object obj,
org.jdom.Element e)
|
void |
startQBean(Q2 server,
ObjectName objectName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QFactory(ObjectName loaderName,
Q2 q2)
| Method Detail |
|---|
public Object instantiate(Q2 server,
org.jdom.Element e)
throws ReflectionException,
MBeanException,
InstanceNotFoundException
ReflectionException
MBeanException
InstanceNotFoundException
public ObjectInstance createQBean(Q2 server,
org.jdom.Element e,
Object obj)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
MalformedObjectNameException,
MalformedURLException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
InstanceNotFoundException,
MBeanException,
NotCompliantMBeanException,
InvalidAttributeValueException,
ReflectionException,
ConfigurationException
ClassNotFoundException
InstantiationException
IllegalAccessException
MalformedObjectNameException
MalformedURLException
InstanceAlreadyExistsException
MBeanRegistrationException
InstanceNotFoundException
MBeanException
NotCompliantMBeanException
InvalidAttributeValueException
ReflectionException
ConfigurationExceptionpublic Q2 getQ2()
public void getExtraPath(QClassLoader loader,
org.jdom.Element e)
public void setAttribute(MBeanServer server,
ObjectName objectName,
String attribute,
Object value)
throws InstanceNotFoundException,
MBeanException,
InvalidAttributeValueException,
ReflectionException
InstanceNotFoundException
MBeanException
InvalidAttributeValueException
ReflectionException
public void startQBean(Q2 server,
ObjectName objectName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
MalformedObjectNameException,
MalformedURLException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
InstanceNotFoundException,
MBeanException,
NotCompliantMBeanException,
InvalidAttributeValueException,
ReflectionException
ClassNotFoundException
InstantiationException
IllegalAccessException
MalformedObjectNameException
MalformedURLException
InstanceAlreadyExistsException
MBeanRegistrationException
InstanceNotFoundException
MBeanException
NotCompliantMBeanException
InvalidAttributeValueException
ReflectionException
public void destroyQBean(Q2 server,
ObjectName objectName,
Object obj)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
MalformedObjectNameException,
MalformedURLException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
InstanceNotFoundException,
MBeanException,
NotCompliantMBeanException,
InvalidAttributeValueException,
ReflectionException
ClassNotFoundException
InstantiationException
IllegalAccessException
MalformedObjectNameException
MalformedURLException
InstanceAlreadyExistsException
MBeanRegistrationException
InstanceNotFoundException
MBeanException
NotCompliantMBeanException
InvalidAttributeValueException
ReflectionException
public void configureQBean(MBeanServer server,
ObjectName objectName,
org.jdom.Element e)
throws ConfigurationException
ConfigurationException
public AttributeList getAttributeList(org.jdom.Element e)
throws ConfigurationException
ConfigurationException
protected Object getObject(org.jdom.Element childElement)
throws ConfigurationException
childElement - Dom Element with the definition of the object.
ConfigurationException - If an exception is found trying to create the object.
protected Collection getCollection(Class type,
org.jdom.Element e)
throws ConfigurationException
<{attr|item} type="...">
- ...
...
type - e -
ConfigurationExceptionpublic String getAttributeName(String name)
name -
public Object newInstance(String clazz)
throws ConfigurationException
ConfigurationException
public Configuration getConfiguration(org.jdom.Element e)
throws ConfigurationException
ConfigurationException
public void setLogger(Object obj,
org.jdom.Element e)
public void setConfiguration(Object obj,
org.jdom.Element e)
throws ConfigurationException
ConfigurationException
public static void invoke(Object obj,
String m,
Object p)
throws ConfigurationException
obj - the objectm - method to invokep - parameter
ConfigurationException - if method happens to throw an exception
public static void invoke(Object obj,
String m,
Object p,
Class pc)
throws ConfigurationException
obj - the objectm - method to invokep - parameterpc - parameter class
ConfigurationException - if method happens to throw an exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||