|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Instanciator
This interface controls the instanciation of Java objects on behalf of COM objects.
Pass a reference to an object which implements this interface when registering the JVM using the Jvm class.
The default instanciator implementation used by the Jvm looks like this:
public Object instanciate(String javaClass) throws AutomationException { try { return Class.forName(javaClass).newInstance(); } catch(Exception e) { e.printStackTrace(); throw new AutomationException(e); } }
It can also be used in COM accessing EJB example.
Method Summary | |
---|---|
java.lang.Object |
instanciate(java.lang.String javaClass)
Instanciates a Java object. |
Method Detail |
---|
java.lang.Object instanciate(java.lang.String javaClass) throws AutomationException
javaClass
- The name of the Java class to be instanciated
AutomationException
- If any other exception occurs.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |