W
Wesley T Perkins
Hello All,
I would like to wrap a class which is contained in a *.jar file (for which I
don't have the source) so I can intercept calls to that class. For example,
say that the class is named SomeClass, I would like to create my own class
something like this:
public class SomeClass
extends
AliasedNameAssignedToTheReal_SomeClass_SoThatIInheritEverythingButTheName
{
... some methods of my own to profile what the original SomeClass is
doing...
}
then precede the *.jar file with my own source in the classpath, together
with an option which says "export the class SomeClass from the jar file but
use another name as an alias. I know I used to do something similar in
C/Unix and possibly with Windows *.dll's as well
Thanks,
Wesley
I would like to wrap a class which is contained in a *.jar file (for which I
don't have the source) so I can intercept calls to that class. For example,
say that the class is named SomeClass, I would like to create my own class
something like this:
public class SomeClass
extends
AliasedNameAssignedToTheReal_SomeClass_SoThatIInheritEverythingButTheName
{
... some methods of my own to profile what the original SomeClass is
doing...
}
then precede the *.jar file with my own source in the classpath, together
with an option which says "export the class SomeClass from the jar file but
use another name as an alias. I know I used to do something similar in
C/Unix and possibly with Windows *.dll's as well
Thanks,
Wesley