[jboss-dev-forums] [Design of POJO Server] - Re: Pushing correct aspect manager for a deployment
adrian@jboss.org
do-not-reply at jboss.com
Wed Aug 6 06:56:58 EDT 2008
"kabir.khan at jboss.com" wrote : I see TestMetaDataBeanDeployer from JBDEPLOY-69 adds the metadata in a different way
|
The only reason I did it a different way was because the deployers
were not fully configured in that test.
I modified the test so it sets up the Deployer's MetaDataRepository
from the Kernel's MetaDataRepository.
The test now uses the mechanism you had originally and passes.
| public class TestMetaDataBeanDeployer extends AbstractDeployer
| {
| public TestMetaDataBeanDeployer()
| {
| setStage(DeploymentStages.PRE_REAL);
| }
|
| public void deploy(DeploymentUnit unit) throws DeploymentException
| {
| unit.getMutableMetaData().addMetaData("test", this, TestMetaDataBeanDeployer.class);
| }
| }
|
I don't what you are seeing? Can you modify the test to show it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168985#4168985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168985
More information about the jboss-dev-forums
mailing list