[jboss-dev-forums] [Design of POJO Server] - Re: Need more metadata for the JARStructure deployer
scott.stark@jboss.org
do-not-reply at jboss.com
Fri Oct 13 14:20:21 EDT 2006
The current StructureMetaData used by the DeclaredDeployer consists of:
| public class StructureMetaData
| {
| private HashMap<String, ContextInfo> contexts = new HashMap<String, ContextInfo>();
|
| public void addContext(ContextInfo context)
| {
| contexts.put(context.getVfsPath(), context);
| }
| public ContextInfo getContext(String vfsPath)
| {
| return contexts.get(vfsPath);
| }
| }
|
| public class ContextInfo
| {
| static class Path
| {
| private String name;
| private String[] suffixes = {};
| Path(String name, String suffixes)
| {
| this.name = name;
| if( suffixes != null )
| this.suffixes = suffixes.split(",");
| }
| public String getName()
| {
| return name;
| }
| public String[] getSuffixes()
| {
| return suffixes;
| }
| }
|
| /** The relative VFS path */
| private String vfsPath;
| /** The optional context classpath */
| private ArrayList<Path> classPath;
| /** The optional context metadata path */
| private String metaDataPath;
|
| public List<Path> getClassPath()
| {
| return classPath;
| }
| public void setClassPath(List<Path> classPath)
| {
| if( this.classPath == null )
| this.classPath = new ArrayList<Path>();
| this.classPath.clear();
| this.classPath.addAll(classPath);
| }
| public String getMetaDataPath()
| {
| return metaDataPath;
| }
| public void setMetaDataPath(String metaDataPath)
| {
| this.metaDataPath = metaDataPath;
| }
| public String getVfsPath()
| {
| return vfsPath;
| }
| public void setVfsPath(String path)
| {
| this.vfsPath = path;
| }
| }
|
So you have a map of deployment contexts (ContextInfo) with the key being the VFS relative path for the deployment context.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978264#3978264
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978264
More information about the jboss-dev-forums
mailing list