org.glassfish.weld
Class WeldDeployer
java.lang.Object
org.glassfish.deployment.common.SimpleDeployer<WeldContainer,WeldApplicationContainer>
org.glassfish.weld.WeldDeployer
- All Implemented Interfaces:
- Deployer<WeldContainer,WeldApplicationContainer>, EventListener, org.jvnet.hk2.component.PostConstruct
@Service
public class WeldDeployer
- extends SimpleDeployer<WeldContainer,WeldApplicationContainer>
- implements org.jvnet.hk2.component.PostConstruct, EventListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WELD_EXTENSION
public static final java.lang.String WELD_EXTENSION
- See Also:
- Constant Field Values
WELD_DEPLOYMENT
public static final java.lang.String WELD_DEPLOYMENT
- See Also:
- Constant Field Values
WeldDeployer
public WeldDeployer()
getMetaData
public MetaData getMetaData()
- Specified by:
getMetaData in interface Deployer<WeldContainer,WeldApplicationContainer>- Overrides:
getMetaData in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
postConstruct
public void postConstruct()
- Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct
event
public void event(EventListener.Event event)
- Specific stages of the Weld bootstrapping process will execute across different stages
of the deployment process. Weld deployment will happen when the load phase of the
deployment process is complete. When all modules have been loaded, a deployment
graph is produced defining the accessiblity relationships between
BeanDeploymentArchives.
- Specified by:
event in interface EventListener
getBeanDeploymentArchiveForBundle
public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive getBeanDeploymentArchiveForBundle(BundleDescriptor bundle)
is299Enabled
public boolean is299Enabled(BundleDescriptor bundle)
getBootstrapForApp
public org.jboss.weld.bootstrap.WeldBootstrap getBootstrapForApp(Application app)
generateArtifacts
protected void generateArtifacts(DeploymentContext dc)
throws DeploymentException
- Specified by:
generateArtifacts in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
- Throws:
DeploymentException
cleanArtifacts
protected void cleanArtifacts(DeploymentContext dc)
throws DeploymentException
- Specified by:
cleanArtifacts in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
- Throws:
DeploymentException
loadMetaData
public <V> V loadMetaData(java.lang.Class<V> type,
DeploymentContext context)
- Specified by:
loadMetaData in interface Deployer<WeldContainer,WeldApplicationContainer>- Overrides:
loadMetaData in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
load
public 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. This method will collect information from each archive (module)
and produce
BeanDeploymentArchive information for each module.
The BeanDeploymentArchives 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 BeanDeploymentArchives.
- Specified by:
load in interface Deployer<WeldContainer,WeldApplicationContainer>- Overrides:
load in class SimpleDeployer<WeldContainer,WeldApplicationContainer>
Copyright © 2012 GlassFish Community. All Rights Reserved.