Class BeanClassRefreshCommand
- java.lang.Object
-
- org.hotswap.agent.command.MergeableCommand
-
- org.hotswap.agent.plugin.owb.command.BeanClassRefreshCommand
-
- All Implemented Interfaces:
org.hotswap.agent.command.Command
public class BeanClassRefreshCommand extends org.hotswap.agent.command.MergeableCommandBeanClassRefreshCommand. Collect all classes definitions/redefinitions for application 1. Merge all commands (definition, redefinition) for appClassLoader to single command. 2. Call proxy redefinitions in BeanArchiveAgent for all merged commands 3. Call bean class reload in BeanArchiveAgent for all merged commands- Author:
- Vladimir Dvorak
-
-
Field Summary
Fields Modifier and Type Field Description static booleanreloadFlagFlag for checking reload status.
-
Constructor Summary
Constructors Constructor Description BeanClassRefreshCommand(ClassLoader appClassLoader, String className, String oldFullSignature, String oldSignatureForProxyCheck, String oldSignatureByStrategy, URL beanArchiveUrl, BeanReloadStrategy beanReloadStrategy)Instantiates a new bean class refresh command.BeanClassRefreshCommand(ClassLoader appClassLoader, String archivePath, URL beanArchiveUrl, org.hotswap.agent.watch.WatchFileEvent event)Instantiates a new bean class refresh command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)voidexecuteCommand()inthashCode()voidreloadBean(List<org.hotswap.agent.command.Command> mergedCommands, Map<String,String> oldFullSignatures, Map<String,String> oldSignatures)StringtoString()
-
-
-
Constructor Detail
-
BeanClassRefreshCommand
public BeanClassRefreshCommand(ClassLoader appClassLoader, String className, String oldFullSignature, String oldSignatureForProxyCheck, String oldSignatureByStrategy, URL beanArchiveUrl, BeanReloadStrategy beanReloadStrategy)
Instantiates a new bean class refresh command.- Parameters:
appClassLoader- the application class loaderclassName- the class nameoldFullSignature- the old full signatureoldSignatureForProxyCheck- the old signature for proxy checkoldSignatureByStrategy- the old signature by strategybeanArchiveUrl- the bean archive urlbeanReloadStrategy- the bean reload strategy
-
BeanClassRefreshCommand
public BeanClassRefreshCommand(ClassLoader appClassLoader, String archivePath, URL beanArchiveUrl, org.hotswap.agent.watch.WatchFileEvent event)
Instantiates a new bean class refresh command.- Parameters:
appClassLoader- the application class loaderarchivePath- the archive pathbeanArchiveUrl- the bean archive urlevent- the class event
-
-