[jboss-dev-forums] [Design the new POJO MicroContainer] - Adding ManagedObjectCreator support to AbstractSimpleRealDep
scott.stark@jboss.org
do-not-reply at jboss.com
Tue Sep 4 11:40:36 EDT 2007
This seems like a natural boilerplate method that should be added to the AbstractSimpleRealDeployer to add support for ManagedObjectCreator. Do you agree?
| public void build(DeploymentUnit unit, Map<String, ManagedObject> managedObjects)
| throws DeploymentException
| {
| T deployment = unit.getAttachment(getInput());
| if (deployment != null)
| undeploy(unit, deployment);
| {
| ManagedObjectFactory factory = ManagedObjectFactoryBuilder.create();
| ManagedObject mo = factory.initManagedObject(deployment, null, null);
| if (mo != null)
| managedObjects.put(mo.getName(), mo);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080953#4080953
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080953
More information about the jboss-dev-forums
mailing list