1 2 Previous Next 18 Replies Latest reply on Oct 31, 2008 9:47 AM by starksm64 Go to original post
      • 15. Re: Merged ClassInfo annotation view?
        alesj

         

        "scott.stark@jboss.org" wrote:
        but as I'm testing these in jbossas I don't see the BeanMetaData annotations showing up in the MetaData for the deployments. In fact, there MetaData obtained from the DeploymentUnit.getMetaData does not have anything it appears.

        It should only appear on components.
        Does your deployer have setComponentsOnly(true) or setWantComponents(true)?

        • 16. Re: Merged ClassInfo annotation view?
          starksm64

          Its the BeanMetaDataDeployer, there is no ManagedObjectCreatorDeployer any longer. The ManagedObjectCreator implementation plugs into the DeployersImpl and processes every DeploymentContext passed in from the MainDeployer.

          • 17. Re: Merged ClassInfo annotation view?
            starksm64

            The problem is ManagedObjects are not created for the component deployment units as the parent deployment unit KernelDeployment metadata exposes the List beanFactories managed property. For a given BeanMetaData I need the component MetaData that overrides it. I don't see how I get this in a general way such that a single ManagedObjectCreator implementation can be used. I'll have to create a KernelDeployment specific implementation.

            • 18. Re: Merged ClassInfo annotation view?
              starksm64

              I finally got this working, but I don't see deployment level annotations visible in the deployment scope metadata:

              <deployment xmlns="urn:jboss:bean-deployer:2.0">
              <annotation>@org.jboss.managed.api.annotation.ManagementDeployment(description="JBossSX Security Beans")</annotation>
              
               <!-- Establish the basic XML Based Configuration-->
               <bean name="XMLLoginConfig" class="org.jboss.security.auth.login.XMLLoginConfig">
               <property name="configResource">login-config.xml</property>
               </bean>
              ...
              


              The ManagementDeployment annotation is not visible via the KernelDeployment DeploymentUnit.getMetaData() mdr accessor.


              1 2 Previous Next