public class BeanClassRefreshAgent extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
reloadFlag
Flag for checking reload status.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArchivePath()
Gets the archive path.
|
String |
getBdaId()
Gets the Bean deployment ID - bdaId.
|
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive |
getDeploymentArchive()
Gets the deployment archive.
|
static Collection<BeanClassRefreshAgent> |
getInstances()
Gets the collection of registered BeanDeploymentArchive(s)
|
static void |
recreateProxy(ClassLoader classLoader,
String archivePath,
Map registeredProxiedBeans,
String beanClassName,
String oldSignatureForProxyCheck)
Recreate proxy classes, Called from BeanClassRefreshCommand.
|
static void |
registerArchive(ClassLoader appClassLoader,
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive beanArchive,
String beanArchiveType)
Register bean archive into BdaAgentRegistry and into WeldPlugin.
|
static void |
reloadBean(ClassLoader classLoader,
String archivePath,
String beanClassName,
Map<String,String> oldFullSignatures,
Map<String,String> oldSignatures,
String strReloadStrategy)
Reload bean according strategy, reinject bean instances.
|
public static boolean reloadFlag
public static void registerArchive(ClassLoader appClassLoader, org.jboss.weld.bootstrap.spi.BeanDeploymentArchive beanArchive, String beanArchiveType)
appClassLoader - the class loader - container or application class loader.beanArchive - the bean archive to be registeredbeanArchiveType - the bean archive typepublic static Collection<BeanClassRefreshAgent> getInstances()
public String getBdaId()
public String getArchivePath()
public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive getDeploymentArchive()
public static void reloadBean(ClassLoader classLoader, String archivePath, String beanClassName, Map<String,String> oldFullSignatures, Map<String,String> oldSignatures, String strReloadStrategy) throws IOException
classLoader - the class loaderarchivePath - the archive pathbeanClassName - the bean class nameoldFullSignatures - the old full signaturesoldSignatures - the map of className to old signaturestrReloadStrategy - the str reload strategyIOException - error working with classDefinitionpublic static void recreateProxy(ClassLoader classLoader, String archivePath, Map registeredProxiedBeans, String beanClassName, String oldSignatureForProxyCheck) throws IOException
classLoader - the class loaderarchivePath - the bean archive pathregisteredProxiedBeans - the registered proxied beansbeanClassName - the bean class nameoldSignatureForProxyCheck - the old signature for proxy checkIOException - error working with classDefinitionCopyright © 2020. All rights reserved.