diff options
-rw-r--r-- | weaver/src/org/aspectj/weaver/loadtime/IWeavingContext.java (renamed from loadtime/src/org/aspectj/weaver/loadtime/IWeavingContext.java) | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/loadtime/src/org/aspectj/weaver/loadtime/IWeavingContext.java b/weaver/src/org/aspectj/weaver/loadtime/IWeavingContext.java index 8311f6e0c..4e4dfc2b7 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/IWeavingContext.java +++ b/weaver/src/org/aspectj/weaver/loadtime/IWeavingContext.java @@ -62,5 +62,15 @@ public interface IWeavingContext { * @return short name */ public String getId (); + + /** + * 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. + * @param classname name of the class, eg. "java.lang.String" + * @return true if the associated classloader will define the class + */ + public boolean isLocallyDefined(String classname); } |