[jboss-dev-forums] [Design of POJO Server] - Added simpleName and relativePathName accessors to the deplo
scott.stark@jboss.org
do-not-reply at jboss.com
Sun Nov 12 15:45:50 EST 2006
A number of deployers are trying to extract simple name/paths from the deployments, so I added getSimpleName, getRelativePath accessors to the DeploymentUnit interface to make this available.
| /**
| * Get the simple vfs name of the deployment unit. This is the simple
| * name of the virtual file .
| *
| * vfs path ------------------- simple name
| * deploy/some.ear "some.ear"
| * deploy/some.ear/x.ejb "x.ejb"
| * deploy/some.ear/y.sar "y.sar"
| * deploy/some.ear/y.sar/z.rar "z.rar"
| * deploy/complexwithappxml.ear/module-mbean1.sar/submbean.sar submbean.sar
| * @return the deployment unit simple path
| */
| public String getSimpleName();
|
| /**
| * Get the path of this deployment relative to the top of the
| * deployment based on the vfs paths. For example, an ear:
| *
| * vfs path ------------------- relative path
| * deploy/some.ear ""
| * deploy/some.ear/x.ejb "/x.ejb"
| * deploy/some.ear/y.sar "/y.sar"
| * deploy/some.ear/y.sar/z.rar "/y.sar/z.rar"
| * deploy/complexwithappxml.ear/module-mbean1.sar/submbean.sar /module-mbean1.sar/submbean.sar
| *
| * @return the top-level deployment relative path
| */
| public String getRelativePath();
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985275#3985275
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985275
More information about the jboss-dev-forums
mailing list