[jboss-user] [JBoss Microcontainer Development] - ShrinkWrapDeployer
Andrew Rubinger
do-not-reply at jboss.com
Fri Apr 30 09:37:11 EDT 2010
Andrew Rubinger [http://community.jboss.org/people/ALRubinger] replied to the discussion
"ShrinkWrapDeployer"
To view the discussion, visit: http://community.jboss.org/message/540422#540422
--------------------------------------------------------------
MC bean enabling native deployment of ShrinkWrap archives. Should be centralized because it'll be used in EmbeddedAS, Embedded EJB3, Arquillian, etc.
In a nutshell, this:
/**
* Deployer for ShrinkWrap {@link Archive} types. End-user
* view to adapt archives directly into the Virtual Deployment
* Framework.
*
* @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
* @version $Revision: $
*/
public interface ShrinkWrapDeployer
{
//-------------------------------------------------------------------------------------||
// Contracts --------------------------------------------------------------------------||
//-------------------------------------------------------------------------------------||
/**
* Deploys the specified archives into the Virtual Deployment Framework
* as an atomic operation.
*
* @param archives The archives to deploy
* @throws IllegalArgumentException If the archives are not specified (null)
* @throws DeploymentException If an error occurred in deployment
*/
void deploy(Archive<?>... archives) throws IllegalArgumentException, DeploymentException;
/**
* Undeploys the specified archives from the Virtual Deployment Framework. Each
* archive must have been previously deployed in via this {@link ShrinkWrapDeployer}
* instance, else it will be ignored and logged as a warning.
*
* @param archives The archives to undeploy
* @throws IllegalArgumentException If the archives are not specified
* @throws DeploymentException If an error occurred during undeployment
*/
void undeploy(Archive<?>... archives) throws IllegalArgumentException, DeploymentException;
}
S,
ALR
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540422#540422]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100430/1fb2b997/attachment.html
More information about the jboss-user
mailing list