|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaokell.lib.interf.Delegator
public abstract class Delegator
This class defines methods shared by all classes which generate at runtime implementations of the Interface interface.
Constructor Summary | |
---|---|
Delegator()
|
Method Summary | |
---|---|
static void |
dumpClassToFile(String dirname,
String classname,
byte[] b)
Utility method to write the bytecode from a class to a file. |
void |
dumpProxies(String dirname)
Dump the generated proxy classes in a given directory. |
Object |
generate(InterfaceType it,
Component itfOwner,
Object content,
boolean isFcInternalInterface)
Generate and instantiate a proxy which implements the same interface as a delegate and that extends the InterfaceImpl class. |
protected abstract ClassDefinition |
generateDelegator(String targetClassname,
String delegateClassname)
Generate a proxy that implements the same interface as a delegate and that extends the InterfaceImpl class. |
protected Class |
getClass(String targetClassname,
String delegateClassname)
Utility method to retrieve a class which has already been generated. |
protected void |
registerProxy(String targetClassname,
ClassDefinition cd)
Store a generated proxy class into the map of proxy classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Delegator()
Method Detail |
---|
public Object generate(InterfaceType it, Component itfOwner, Object content, boolean isFcInternalInterface)
it
- the interface typeitfOwner
- the component associated to the interfacecontent
- the content to which the call must be delegatedisFcInternalInterface
- true if the generated proxy is an internal interface
protected abstract ClassDefinition generateDelegator(String targetClassname, String delegateClassname)
protected Class getClass(String targetClassname, String delegateClassname) throws ClassNotFoundException
ClassNotFoundException
protected void registerProxy(String targetClassname, ClassDefinition cd)
public static void dumpClassToFile(String dirname, String classname, byte[] b) throws IOException
dirname
- the root directory nameclassname
- the name of the classb
- the bytecode
IOException
public void dumpProxies(String dirname)
dirname
- the directory name where the classes must be generated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |