|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWeavingContext
This class adds support to AspectJ for an OSGi environment
Method Summary | |
---|---|
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. |
Method Detail |
---|
Enumeration getResources(String name) throws IOException
name
- the name of the resource to search for
IOException
String getBundleIdFromURL(URL url)
null.
- Parameters:
url
-
- Returns:
String getClassLoaderName()
ClassLoader getClassLoader()
String getFile(URL url)
String getId()
boolean isLocallyDefined(String classname)
classname
- name of the class, eg. "java.lang.String"
List getDefinitions(ClassLoader loader, WeavingAdaptor adaptor)
loader
- adaptor
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |