|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.util.WrapLib
This class generates the jac.lib
delegators
source-files from the jac.prop
file found in the
current directory (exclude all other options).
Constructor Summary | |
WrapLib()
|
Method Summary | |
protected static void |
createDelegator(Class c)
Creates a class that present the same interface that the original class but that delegates all the work to an instance of the original class. |
static String |
listAsString(List l)
|
static void |
main(String[] args)
The entry point of the wraplib program. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WrapLib()
Method Detail |
public static String listAsString(List l)
public static void main(String[] args) throws Throwable
args
- none arguments are expected (parametrization is done
by the jac.prop
file in the current directory --
user should define the jac.toWrap property as a list of classes
to wrap
Throwable
protected static void createDelegator(Class c)
This feature is implemented to be able to easily wrap libraries that would have been hardly wrappable on the "as is" classes, for instance the jdk classes (see the -g option of Jac).
As a result, this method creates a Java source file in the src/org/objectweb/jac/lib directory of the JAC distribution. This file should then be compiled as a regular file.
c
- the original class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |