[jboss-dev-forums] [Design of POJO Server] - Re: BSH script from client

alesj do-not-reply at jboss.com
Fri Dec 14 13:15:15 EST 2007


Scott, you said -service.xml can be where ever?
Or which file?

Since SARDeployer extends JAXPDeployer
JAXPDeployer extends AbstractVFSParsingDeployer.

Where AbstractVFSParsingDeployer uses this to find files with suffix:

  |    protected T parse(DeploymentUnit unit, String name, String suffix, T root) throws Exception
  |    {
  |       // Should we include the deployment
  |       // The infrastructure will only check leafs anyway so no need to check here
  |       if (name == null && isIncludeDeploymentFile())
  |          name = unit.getName();
  |       
  |       // Try to find the metadata
  |       VFSDeploymentUnit vfsDeploymentUnit = (VFSDeploymentUnit) unit;
  |       List<VirtualFile> files = vfsDeploymentUnit.getMetaDataFiles(name, suffix);
  |       if (files.size() == 0)
  |          return null;
  |       
  |       // TODO JBMICROCONT-184 remove this limitation
  |       if (files.size() > 1)
  |          throw new DeploymentException("Only one file is allowed, found=" + files);
  | 
  |       VirtualFile file = files.get(0);
  |       
  |       T result = parse(vfsDeploymentUnit, file, root);
  |       if (result != null)
  |          init(vfsDeploymentUnit, result, file);
  |       return result;
  |    }
  | 

'vfsDeploymentUnit.getMetaDataFiles(name, suffix)'

Meaning only metadata files are checked.

What would be needed to handle .bsh file anywhere?
A new BshStructure?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113035#4113035

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113035



More information about the jboss-dev-forums mailing list