org.aspectj.weaver.loadtime
Class DefaultWeavingContext
java.lang.Object
org.aspectj.weaver.loadtime.DefaultWeavingContext
- IWeavingContext
public class DefaultWeavingContext
extends java.lang.Object
Use in non-OSGi environment
DefaultWeavingContext(ClassLoader loader) - Construct a new WeavingContext to use the specifed ClassLoader
This is the constructor which should be used.
|
loader
protected ClassLoader loader
DefaultWeavingContext
public DefaultWeavingContext(ClassLoader loader)
Construct a new WeavingContext to use the specifed ClassLoader
This is the constructor which should be used.
getBundleIdFromURL
public String getBundleIdFromURL(URL url)
- getBundleIdFromURL in interface IWeavingContext
- null as we are not in an OSGi environment (therefore no bundles)
getResources
public Enumeration getResources(String name)
throws IOException
Same as ClassLoader.getResources()
- getResources in interface IWeavingContext
getSuffix
public String getSuffix()
isLocallyDefined
public boolean isLocallyDefined(String classname)
Return true if the classloader associated with this weaving context
is the one that will define the class with the specified name.
In a delegating classloader hierarchy this might check the parent won't
define it and the child will - in OSGi it will do something else.
- isLocallyDefined in interface IWeavingContext
classname
- name of the class, eg. "java.lang.String"
- true if the associated classloader will define the class