@ConsumerType public interface WovenClassListenerWoven Class Listener Service.
Bundles registering this service will receive notifications whenever a
woven classcompletes a
statetransition. Woven Class Listeners are not able to modify the woven class in contrast with
Receiving a woven class in the
TRANSFORMEDstate allows listeners to observe the modified
byte codesbefore the class has been
DEFINEDas well as the additional
dynamic importsbefore the
bundle wiringhas been updated.
Woven class listeners are synchronously
calledwhen a woven class completes a state transition. The woven class processing will not proceed until all woven class listeners are done.
If the Java runtime environment supports permissions, the caller must have
ServicePermission[WovenClassListener,REGISTER]in order to register a listener.
void modified(WovenClass wovenClass)Receives notification that a
woven classhas completed a state transition.
If this method throws any exception, the Framework must log the exception but otherwise ignore it.
wovenClass- The woven class that completed a state transition.