"johnbailey" wrote :
| 1. What is the best way to get the location of the deployed asset (jar, etc..). I
see the name of the VFSFile in the name of the DeploymentContext, but I want to make sure
the location returned will always be a valid path to the asset. The Bundle Facade needs
to return the location as well as search for entries without a classloader
(Bundle.getEntry, Bundle.getEntryPaths)
|
The DeploymentContext should really be VFSDeploymentContext.
And that one has all the hooks you need.
"johnbailey" wrote :
| 2. Will we be supporting the OSGI AdminPermission checks?
|
We should. But it's not a priority.
I still need to look at that more thoroughly.
"johnbailey" wrote :
| 3. Is there an existing Id that can be used for the Bundle ID? It needs to be
unique, and I don't want to create a new scheme if there is something in place to
use.
|
Underlying context name should do.
That's how module's get their name.
| private static String determineContextName(DeploymentUnit unit)
| {
| if (unit == null)
| throw new IllegalArgumentException("Null unit");
| ControllerContext context = unit.getAttachment(ControllerContext.class);
| if (context == null)
| throw new IllegalStateException("Deployment has no controller
context");
| return (String) context.getName();
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131865#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...