public class DefaultWeavingContext extends Object implements IWeavingContext
限定符和类型 | 字段和说明 |
---|---|
protected org.aspectj.weaver.bcel.BcelWeakClassLoaderReference |
loaderRef |
构造器和说明 |
---|
DefaultWeavingContext(ClassLoader loader)
Construct a new WeavingContext to use the specified ClassLoader This is the constructor which should be used.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
public DefaultWeavingContext(ClassLoader loader)
loader
- public Enumeration getResources(String name) throws IOException
getResources
在接口中 IWeavingContext
name
- the name of the resource to search forIOException
public String getBundleIdFromURL(URL url)
IWeavingContext
null.
getBundleIdFromURL
在接口中 IWeavingContext
public String getClassLoaderName()
IWeavingContext
getClassLoaderName
在接口中 IWeavingContext
public ClassLoader getClassLoader()
getClassLoader
在接口中 IWeavingContext
public String getFile(URL url)
IWeavingContext
getFile
在接口中 IWeavingContext
public String getId()
IWeavingContext
getId
在接口中 IWeavingContext
public String getSuffix()
public boolean isLocallyDefined(String classname)
IWeavingContext
isLocallyDefined
在接口中 IWeavingContext
classname
- name of the class, eg. "java.lang.String"public List<Definition> getDefinitions(ClassLoader loader, WeavingAdaptor adaptor)
getDefinitions
在接口中 IWeavingContext
weaver
- loader
-