FileDocCategorySizeDatePackage
JBossExample2ConfigBeanRoot.javaAPI DocJBoss 4.2.16428Fri Jul 13 20:52:32 BST 2007org.jboss.deployment.spi.beans

JBossExample2ConfigBeanRoot

public class JBossExample2ConfigBeanRoot extends JBossConfigBeanProxy implements javax.enterprise.deploy.spi.DConfigBeanRoot
This class is an example of how to build config beans based on a number of required xpaths for a deployment descriptor. The required xpaths for this example class are: root-element/sub-element[@id] root-element/sub-element/name root-element/sub-element/class root-element/other-sub/name root-element/other-sub/description This example class will return the xpaths as ONE list. Any attempt to get a child bean will return a null-bean, as the children beans will not require additional xpaths.
author
Rob Stryker
version
$Revision: 57190 $ TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Fields Summary
Constructors Summary
public JBossExample2ConfigBeanRoot(javax.enterprise.deploy.model.DDBeanRoot root)

      JBossExample2MainConfigBean bean = new JBossExample2MainConfigBean(root, this, null);
      DeployableObject deployment = root.getDeployableObject();
      setBean(bean, deployment);
   
Methods Summary
public javax.enterprise.deploy.spi.DConfigBeangetDConfigBean(javax.enterprise.deploy.model.DDBeanRoot arg0)

      /*
       * Get the filename for this bean root and send along 
       * a configbean for that type.
       * 
       * This example assumes only one jboss-specific descriptor, 
       * so this method returns null.
       */
      return null;