org.aspectj.weaver.loadtime
public interface IWeavingContext
Modifier and Type | Method and Description |
---|---|
String |
getBundleIdFromURL(URL url)
Deprecated.
use getFile() or getClassLoaderName()
|
ClassLoader |
getClassLoader() |
String |
getClassLoaderName()
In an environment with multiple class loaders allows each to be
identified using something safer and possibly shorter than toString
|
List |
getDefinitions(ClassLoader loader,
WeavingAdaptor adaptor)
Allow custom parsing of aop.xml or alternative mechanism for providing
Definitions
|
String |
getFile(URL url)
Format a URL
|
String |
getId()
In an environment with multiple class loaders allows messages
to identified according to the weaving context
|
Enumeration |
getResources(String name)
Allows the standard ClassLoader.getResources() mechanisms to be
replaced with a different implementation.
|
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.
|
Enumeration getResources(String name) throws IOException
name
- the name of the resource to search forIOException
String getBundleIdFromURL(URL url)
null.
url
- String getClassLoaderName()
ClassLoader getClassLoader()
String getId()
boolean isLocallyDefined(String classname)
classname
- name of the class, eg. "java.lang.String"List getDefinitions(ClassLoader loader, WeavingAdaptor adaptor)
loader
- adaptor
-