public interface IWeavingContext
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBundleIdFromURL(java.net.URL url)
Deprecated.
use getFile() or getClassLoaderName()
|
java.lang.ClassLoader |
getClassLoader() |
java.lang.String |
getClassLoaderName()
In an environment with multiple class loaders allows each to be
identified using something safer and possibly shorter than toString
|
java.util.List |
getDefinitions(java.lang.ClassLoader loader,
WeavingAdaptor adaptor)
Allow custom parsing of aop.xml or alternative mechanism for providing
Definitions
|
java.lang.String |
getFile(java.net.URL url)
Format a URL
|
java.lang.String |
getId()
In an environment with multiple class loaders allows messages
to identified according to the weaving context
|
java.util.Enumeration |
getResources(java.lang.String name)
Allows the standard ClassLoader.getResources() mechanisms to be
replaced with a different implementation.
|
boolean |
isLocallyDefined(java.lang.String classname)
Return true if the classloader associated with this weaving context
is the one that will define the class with the specified name.
|
java.util.Enumeration getResources(java.lang.String name) throws java.io.IOException
name
- the name of the resource to search forjava.io.IOException
java.lang.String getBundleIdFromURL(java.net.URL url)
null.
url
- java.lang.String getClassLoaderName()
java.lang.ClassLoader getClassLoader()
java.lang.String getFile(java.net.URL url)
java.lang.String getId()
boolean isLocallyDefined(java.lang.String classname)
classname
- name of the class, eg. "java.lang.String"java.util.List getDefinitions(java.lang.ClassLoader loader, WeavingAdaptor adaptor)
loader
- adaptor
-