As described above, the MainDeployer is an extension to the DeployerClient
and also implements MainDeployerStructure (deployment navigation).
Here I'll describe two other significant changes.
1) The configuration now uses the new install callbacks in the microcontainer.
That is there is no need to do:
| <install bean="MainDeployer" method="addDeployer">
| <parameter><this/></parameter>
| </install>
| <uninstall bean="MainDeployer" method="removeDeployer">
| <parameter><this/></parameter>
| </uninstall>
|
on every deployer.
Instead the MainDeployer (really the StructuralDeployers and DeployersImpl
say that they want to be called for all classes that implement the types
on their add/remove methods.
| <bean name="StructuralDeployers"
class="org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl">
| <!-- Accept any implementor of structure deployer -->
| <incallback method="addDeployer"/>
| <uncallback method="removeDeployer"/>
| </bean>
|
2) DeployersImpl
Like what was done for the StructureDeployers, the real deployers
are now handled by a delegate class "Deployers", meaing the MainDeployer
actually just acts as a "Fat Interface" and delegates all its real work.
The new implementation DeployersImpl is also where the new deployment
dependencies (via the MicroContainer) and attachment flow are handled.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058831#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...