org.curjent.impl.agent
Class Factory

java.lang.Object
  extended by org.curjent.impl.agent.Factory
Direct Known Subclasses:
MessageFactory, ProxyFactory

abstract class Factory
extends Object

Base class for the proxy and message factories. Implements some common utility methods.


Field Summary
private static boolean SAVE
          Debug flag to save generated classes to the file system.
 
Constructor Summary
Factory()
           
 
Method Summary
protected static void save(String name, byte[] bytes)
          Saves a generated class file to disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAVE

private static final boolean SAVE
Debug flag to save generated classes to the file system.

See Also:
save(String, byte[]), Constant Field Values
Constructor Detail

Factory

Factory()
Method Detail

save

protected static void save(String name,
                           byte[] bytes)
                    throws Exception
Saves a generated class file to disk. Saved to a directory named "dump" in the current working directory.

Throws:
Exception
See Also:
SAVE


Copyright 2009-2011 Tom Landon
Apache License 2.0