Package org.hotswap.agent.plugin.owb
Class OwbPlugin
- java.lang.Object
-
- org.hotswap.agent.plugin.owb.OwbPlugin
-
@Plugin(name="Owb", description="OpenWebBeans framework(http://openwebbeans.apache.org/). Reload, reinject bean, redefine proxy class after bean class definition/redefinition.", testedVersions="1.7.0-2.0.16", expectedVersions="All between 1.7.0-2.0.16", supportClass={BeansDeployerTransformer.class,CdiContextsTransformer.class,ProxyFactoryTransformer.class,AbstractProducerTransformer.class}) public class OwbPlugin extends ObjectOwbPlugin (OpenWebBeans)- Author:
- Vladimir Dvorak
-
-
Constructor Summary
Constructors Constructor Description OwbPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclassReload(ClassLoader classLoader, org.hotswap.agent.javassist.CtClass ctClass, Class<?> original)Called on class redefinition.voidinit()Plugin initialization, called from archive registration,voidregisterBeansXmls(Set bdaLocations)Register BeanArchive's paths to watcher.URLresourceNameToURL(String resource)
-
-
-
Method Detail
-
init
public void init()
Plugin initialization, called from archive registration,
-
registerBeansXmls
public void registerBeansXmls(Set bdaLocations)
Register BeanArchive's paths to watcher. In case of new class the class file is not known to JVM hence no hotswap is called and therefore it must be handled by watcher.- Parameters:
bdaLocations- the Set of URLs of archive locations
-
classReload
@OnClassLoadEvent(classNameRegexp=".*", events=REDEFINE) public void classReload(ClassLoader classLoader, org.hotswap.agent.javassist.CtClass ctClass, Class<?> original)Called on class redefinition. Class may be bean class- Parameters:
classLoader- the class loader in which class is redefined (Archive class loader)ctClass- the ct classoriginal- the original
-
-