[jboss-dev-forums] [Design of POJO Server] - Re: JAXBDeployer

adrian@jboss.org do-not-reply at jboss.com
Wed Jan 24 11:33:24 EST 2007


Incidently, if you want to use (I don't have a test for it yet :-)

You would do something like:


  | public class MyParser extends JAXBDeployer<SomeMetaData>
  | {
  |    public MyParser()
  |    {
  |       super(SomeMetaData.class);
  |    }
  | 
  |    public void deploy(DeploymentUnit unit) throws DeploymentException
  |    {
  |       createMetaData(unit, null, "-my-extension.xml");
  |    }
  | }
  | 

Which will create the SomeMetaData attachment ready for the real deployer to pick up.

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

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



More information about the jboss-dev-forums mailing list