|
|||||||||
| 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 java.lang.ClassLoader |
loader
|
| Constructor Summary | |
|---|---|
DefaultWeavingContext(java.lang.ClassLoader loader)
Construct a new WeavingContext to use the specifed 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.String |
getClassLoaderName()
In an environment with multiple class loaders allows each to be identified using something safer and possibly shorter than toString |
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 java.lang.ClassLoader loader
| 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 IWeavingContextname - the name of the resource to search for
java.io.IOExceptionpublic java.lang.String getBundleIdFromURL(java.net.URL url)
IWeavingContextnull.
- 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 IWeavingContextpublic java.lang.String getFile(java.net.URL url)
IWeavingContext
getFile in interface IWeavingContextpublic java.lang.String getId()
IWeavingContext
getId in interface IWeavingContextpublic java.lang.String getSuffix()
public boolean isLocallyDefined(java.lang.String classname)
IWeavingContext
isLocallyDefined in interface IWeavingContextclassname - name of the class, eg. "java.lang.String"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||