[jboss-jira] [JBoss JIRA] Resolved: (JBAS-4376) Have deployers implement ManagedObjectCreator

Dimitris Andreadis (JIRA) jira-events at lists.jboss.org
Fri Dec 14 10:48:43 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4376?page=all ]

Dimitris Andreadis resolved JBAS-4376.
--------------------------------------

    Resolution: Done

Close the parent tasks to remove clutter.

> Have deployers implement ManagedObjectCreator
> ---------------------------------------------
>
>                 Key: JBAS-4376
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4376
>             Project: JBoss Application Server
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Deployment services, Management services
>            Reporter: Scott M Stark
>         Assigned To: Dimitris Andreadis
>            Priority: Critical
>             Fix For:  JBossAS-5.0.0.Beta3
>
>
> A container task for having deployers implement ManagedObjectCreator to provide the deployment management metadata.
> Typically this should be based on annotating the deployer metadata and then implementing the build method along the lines of:
>    public void build(DeploymentUnit unit, Map<String, ManagedObject> managedObjects)
>       throws DeploymentException
>    {
>       ManagedConnectionFactoryDeploymentGroup mcfdg = unit.getAttachment(getInput());
>       if (mcfdg != null)
>       {
>          ManagedObjectFactory factory = ManagedObjectFactoryBuilder.create();
>          ManagedObject mo = factory.initManagedObject(mcfdg, null, null);
>          if (mo != null)
>             managedObjects.put(mo.getName(), mo);
>       }
>    }
> This should be done in the parsing deployers. Any subclass of the AbstractParsingDeployerWithOutput inherits such an implementation, and can enable it by setting the buildManagedObject property true. 
> public class ManagedConnectionFactoryParserDeployer extends AbstractVFSParsingDeployer<ManagedConnectionFactoryDeploymentGroup>
> {   
> ...
>    public ManagedConnectionFactoryParserDeployer()
>    {
>       super(ManagedConnectionFactoryDeploymentGroup.class);
>       setBuildManagedObject(true);
>    }
> The http://wiki.jboss.org/wiki/Wiki.jsp?page=ManagedObjects page will document what is needed to annotate the metadata.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list