|
|
@@ -369,7 +369,7 @@ public class WeavingAdaptor implements IMessageContext { |
|
|
|
|
|
|
|
try { |
|
|
|
delegateForCurrentClass = null; |
|
|
|
if (couldWeave(name, bytes)) { |
|
|
|
if (shouldWeaveName(name)) { |
|
|
|
if (accept(name, bytes)) { |
|
|
|
|
|
|
|
// Determine if we have the weaved class cached |
|
|
@@ -448,14 +448,6 @@ public class WeavingAdaptor implements IMessageContext { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param name |
|
|
|
* @return true if even valid to weave: either with an accept check or to munge it for @AspectJ aspectof support |
|
|
|
*/ |
|
|
|
private boolean couldWeave(String name, byte[] bytes) { |
|
|
|
return !generatedClasses.containsKey(name) && shouldWeaveName(name); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Return the bytes from a (parallel?) weaving process that generated an inner class, e.g. to support Around closures. |
|
|
|
* This is done instead of weaving again, as weaving would generate another inner class. |