| Modifier and Type | Field and Description |
|---|---|
| protected BcelWeakClassLoaderReference | |
| private String | |
| private static Trace |
| Access | Constructor and Description |
|---|---|
| public | DefaultWeavingContext(ClassLoader loader)
Construct a new WeavingContext to use the specified ClassLoader This is the constructor which should be used. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: null as we are not in an OSGi environment (therefore no bundles)Implements org. |
| public ClassLoader | |
| public String | Returns: classname@hashcodeImplements org. |
| public List | getDefinitions(final ClassLoader loader, final WeavingAdaptor adaptor)
Implements org. |
| public String | Returns: filenameImplements org. |
| public String | Returns: unqualifiedclassname@hashcodeImplements org. |
| public Enumeration | getResources(String
the name of the resource to search for name)Implements org. |
| public String | |
| public boolean | isLocallyDefined(String
name of the class, eg. "java.lang.String" classname)Implements org. |
| loaderRef | back to summary |
|---|---|
| protected BcelWeakClassLoaderReference loaderRef | |
| shortName | back to summary |
|---|---|
| private String shortName | |
| trace | back to summary |
|---|---|
| private static Trace trace | |
| DefaultWeavingContext | back to summary |
|---|---|
| public DefaultWeavingContext(ClassLoader loader) Construct a new WeavingContext to use the specified ClassLoader This is the constructor which should be used. | |
| getBundleIdFromURL | back to summary |
|---|---|
| public String getBundleIdFromURL(URL url) Implements org. Doc from org. In an OSGi environment, determine which bundle a URL originated from.
In a non-OSGi environment, implementors should return
| |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Implements org. | |
| getClassLoaderName | back to summary |
|---|---|
| public String getClassLoaderName() Implements org. Doc from org. In an environment with multiple class loaders allows each to be identified using something safer and possibly shorter than toString
| |
| getDefinitions | back to summary |
|---|---|
| public List Implements org. Simply call weaving adaptor back to parse aop.xml
| |
| getFile | back to summary |
|---|---|
| public String getFile(URL url) Implements org. Doc from org. Format a URL
| |
| getId | back to summary |
|---|---|
| public String getId() Implements org. Doc from org. In an environment with multiple class loaders allows messages to identified according to the weaving context
| |
| getResources | back to summary |
|---|---|
| public Enumeration Implements org. Same as ClassLoader.getResources()
| |
| getSuffix | back to summary |
|---|---|
| public String getSuffix() | |
| isLocallyDefined | back to summary |
|---|---|
| public boolean isLocallyDefined(String classname) Implements org. Doc from org. Return true if the classloader associated with this weaving context is the one that will define the class with the specified name. In a delegating classloader hierarchy this might check the parent won't define it and the child will - in OSGi it will do something else.
| |