|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectj.weaver.loadtime.DefaultWeavingContext
public class DefaultWeavingContext
Use in non-OSGi environment
Field Summary | |
---|---|
protected BcelWeakClassLoaderReference |
loaderRef
|
Constructor Summary | |
---|---|
DefaultWeavingContext(java.lang.ClassLoader loader)
Construct a new WeavingContext to use the specified ClassLoader This is the constructor which should be used. |
Method Summary | |
---|---|
java.lang.String |
getBundleIdFromURL(java.net.URL url)
In an OSGi environment, determin which bundle a URL originated from. |
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<Definition> |
getDefinitions(java.lang.ClassLoader loader,
WeavingAdaptor adaptor)
Simply call weaving adaptor back to parse aop.xml |
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)
Same as ClassLoader.getResources() |
java.lang.String |
getSuffix()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BcelWeakClassLoaderReference loaderRef
Constructor Detail |
---|
public DefaultWeavingContext(java.lang.ClassLoader loader)
loader
- Method Detail |
---|
public java.util.Enumeration getResources(java.lang.String name) throws java.io.IOException
getResources
in interface IWeavingContext
name
- the name of the resource to search for
java.io.IOException
public java.lang.String getBundleIdFromURL(java.net.URL url)
IWeavingContext
null.
- Specified by:
getBundleIdFromURL
in interface IWeavingContext
- Returns:
- null as we are not in an OSGi environment (therefore no bundles)
public java.lang.String getClassLoaderName()
IWeavingContext
getClassLoaderName
in interface IWeavingContext
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface IWeavingContext
public java.lang.String getFile(java.net.URL url)
IWeavingContext
getFile
in interface IWeavingContext
public java.lang.String getId()
IWeavingContext
getId
in interface IWeavingContext
public java.lang.String getSuffix()
public boolean isLocallyDefined(java.lang.String classname)
IWeavingContext
isLocallyDefined
in interface IWeavingContext
classname
- name of the class, eg. "java.lang.String"
public java.util.List<Definition> getDefinitions(java.lang.ClassLoader loader, WeavingAdaptor adaptor)
getDefinitions
in interface IWeavingContext
weaver
- loader
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |