[jboss-dev-forums] [JBoss AS7 Development] - Re: Deployer chain cleanup
Alexey Loubyansky
do-not-reply at jboss.com
Thu Nov 11 02:54:50 EST 2010
Alexey Loubyansky [http://community.jboss.org/people/alex.loubyansky%40jboss.com] created the discussion
"Re: Deployer chain cleanup"
To view the discussion, visit: http://community.jboss.org/message/570676#570676
--------------------------------------------------------------
Adding a cleanup method to DUP is probably the most natural thing to do. The reason I didn't do it was I didn't want to go modify each DUP implementation.
Also I had an idea of doing something like this
// this is the interface I'm currently using
public interface DeploymentRollbackAction { void rollback(DeploymentUnitContext ctx);}
public abstract class DeploymentUnitProcessorWithRollback implements DeploymentUnitProcessor, DeploymentRollbackAction { public final void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { context.pushRollback(this); doProcess(context); } protected abstract void doProcess(DeploymentUnitContext context) throws DeploymentUnitProcessingException;}
So then DUP that may need cleaning up can extend this processor.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570676#570676]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101111/0ed2c0fb/attachment.html
More information about the jboss-dev-forums
mailing list