[jboss-dev-forums] [Design of POJO Server] - Re: Moving forward with the profile service mgmt api
adrian@jboss.org
do-not-reply at jboss.com
Fri Dec 22 00:40:41 EST 2006
I've updated the Deployers with support for retrieving ManagedObjects.
See org.jboss.test.deployers.managed.test.DeployerManagedObjectUnitTestCase
which includes some TODOs (I've included some TODOs where I added the new api).
This means that jboss-managed.jar and jboss-metatype.jar need to be included
in the next mc snapshot for JBossAS. Although there isn't anything using this api
at runtime yet, the MainDeployer and DeployerWrapper import the ManagedObject interface.
Now you can retrieve the corresponding ManagedObjects for a deployment's
Attachments if the deployer has been coded to implement
org.jboss.deployers.spi.managed.ManagedObjectBuilder
I also updated the ManagedObject api with a
String getName();
Serializable getAttachment();
Where the getName() is the name of the attachment in the Attachments map(s)
of the DeploymentContext.
So there are some basic links between the
Deployer, DeploymentContext, Attachment and ManagedObject
but no real code (besides mock tests) that construct ManagedObjects
The rest of the basic Attachment/ManagedObject handling
(excluding non-redeployment runtime changes) should be handled by the profile service?
I'm going to go back to working on the ManagedObject generation now. :-)
Though you probably first need a "hand-written" ManagedObjectBuilder implementation
in the datasource deployer to complete the basic end-end tests?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995782#3995782
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995782
More information about the jboss-dev-forums
mailing list