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