[jboss-dev-forums] [Design of OSGi Integration] - Facade Questions
alesj
do-not-reply at jboss.com
Fri Feb 22 01:33:46 EST 2008
Moving this to the forum:
"johnbailey" wrote :
| I am still trying to get a grasp of how the Facade will be used.
| After the forum post, I think I understand the bundles will be loaded
| into the MC like any other deployment, but will have meta-data taken
| from the manifest to drive some of the wiring for classloading. I
| like the idea that a Bundle facade can reference any deployment
| regardless of whether it came from an OSGI bundle from the start. So
| that being said, who will be referencing the Bundles? I can see how
| the BundleActivator deployer creates the BundleContext, which creates
| the BundleImpl. The BundleContext is created with a DeploymentUnit,
| which has an attachment of the DeploymentControllerContext, correct?
| From Adrian's comments, it seems the Bundle is a Facade over the
| DeploymentControllerContext. So if Bundle.start is called, it would
| actually change the state of the ControllerContex, but who would ever
| do this?
|
| I have created some tests that use a JarStructure deployer and the
| OSGI Manifest and BundleActivator to deploy an OSGI based JAR. The MC
| will deploy the JAR and the BundleActivator as well as invoking the
| start start opperation on the BundleActivator. I can see how this
| will allow the BundleActivator to register services into the MC using
| the BundleContext, but in this process the Bundle isn't used, which
| makes sense as the Bundle is just a Deployment to the MC with
| additional wiring constraints. So why would I get access to the
| Bundle? If so it just seems like I would get the ControllerContext
| and create the Bundle from there?
|
| Am I making any sense? I am getting a really good understanding of
| the MC and deployments, but I guess I need a clearer understanding of
| how a client would use the Facade? Is there a client type we are
| looking to support?
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131282#4131282
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131282
More information about the jboss-dev-forums
mailing list