@Service public class WeldDeployer extends SimpleDeployer<WeldContainer,WeldApplicationContainer> implements org.glassfish.hk2.api.PostConstruct, EventListener
EventListener.Event<T>
Modifier and Type | Field and Description |
---|---|
static String |
DEV_MODE_PROPERTY |
static String |
WELD_DEPLOYMENT |
static String |
WELD_EXTENSION |
Constructor and Description |
---|
WeldDeployer() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanArtifacts(DeploymentContext dc) |
void |
event(EventListener.Event<?> event)
Specific stages of the Weld bootstrapping process will execute across different stages of the
deployment process.
|
protected void |
generateArtifacts(DeploymentContext dc) |
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive |
getBeanDeploymentArchiveForBundle(BundleDescriptor bundle) |
org.jboss.weld.bootstrap.WeldBootstrap |
getBootstrapForApp(Application app) |
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer
|
boolean |
is299Enabled(BundleDescriptor bundle) |
WeldApplicationContainer |
load(WeldContainer container,
DeploymentContext context)
Processing in this method is performed for each module that is in the process of being loaded by
the container.
|
<V> V |
loadMetaData(Class<V> type,
DeploymentContext context)
Loads the meta date associated with the application.
|
void |
postConstruct() |
clean, prepare, unload
public static final String WELD_EXTENSION
public static final String WELD_DEPLOYMENT
public static final String DEV_MODE_PROPERTY
public MetaData getMetaData()
SimpleDeployer
getMetaData
in interface Deployer<WeldContainer,WeldApplicationContainer>
getMetaData
in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
public void postConstruct()
postConstruct
in interface org.glassfish.hk2.api.PostConstruct
public WeldApplicationContainer load(WeldContainer container, DeploymentContext context)
This method will collect information from each archive (module) and produce
BeanDeploymentArchive
information for each module.
The
BeanDeploymentArchive
s are stored in the Deployment
(that will
eventually be handed off to Weld
. Once this method is called for all modules (and
BeanDeploymentArchive
information has been collected for all Weld
modules), a relationship structure is produced defining the accessiblity rules for the
BeanDeploymentArchive
s.
load
in interface Deployer<WeldContainer,WeldApplicationContainer>
load
in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
container
- context
- public void event(EventListener.Event<?> event)
BeanDeploymentArchive
s.event
in interface EventListener
event
- protected void generateArtifacts(DeploymentContext dc) throws DeploymentException
generateArtifacts
in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
DeploymentException
protected void cleanArtifacts(DeploymentContext dc) throws DeploymentException
cleanArtifacts
in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
DeploymentException
public <V> V loadMetaData(Class<V> type, DeploymentContext context)
SimpleDeployer
loadMetaData
in interface Deployer<WeldContainer,WeldApplicationContainer>
loadMetaData
in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
type
- type of meta-data that this deployer has declared providing.public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive getBeanDeploymentArchiveForBundle(BundleDescriptor bundle)
public boolean is299Enabled(BundleDescriptor bundle)
public org.jboss.weld.bootstrap.WeldBootstrap getBootstrapForApp(Application app)
Copyright © 2020. All rights reserved.