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

adrian@jboss.org do-not-reply at jboss.com
Thu Nov 15 05:47:36 EST 2007


"scott.stark at jboss.org" wrote : This should be picked up by the bsh deployer Ales ported over. It should not require a change to the bootstrap-beans.xml as bsh should not be a bootstrap supported capability.
  | 

Whether it should or it shouldn't, it currently does require a change in bootstrap-beans.xml
i.e. for subdeployments you have to tell the FileStructure deployer what plain file
extensions are deployable.
I updated the JIRA issue with the required change.

Maybe we could add some mechanism where a deployer can automagically
register/unregister matching alogrithms with the FileStructure for otherwise
unrecognised files.

e.g.


  | public interface FileMatcher
  | {
  |    boolean isDeployable(VirtualFile file);
  | }
  | 
  | 
  |   | public class FileStructure implements StructureDeployer
  |   | {
  |   |    ...
  |   | 
  |   |    @InCallback
  |   |    public void addFileMatcher(FileMatcher fm) {...};
  |   |    @UnCallback
  |   |    public void removeFileMatcher(FileMatcher fm) {...};
  |   | }
  |   | 
  | 
  | The bean shell deployer could then implement FileMatcher to say
  | it wants files ending with .bsh and the MC will do the injection onto the FileStructure
  | without any extra xml or code.

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

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



More information about the jboss-dev-forums mailing list