Package org.jboss.managed.api.annotation

Examples of org.jboss.managed.api.annotation.ManagementDeployment.types()


      if(mdAnnotation != null)
      {
         String mdaSimpleName = mdAnnotation.simpleName();
         if(mdaSimpleName.length() > 0 && ManagementConstants.GENERATED.equals(mdaSimpleName) == false)
            simpleName = mdAnnotation.simpleName();
         types = mdAnnotation.types();
      }
     
      ManagedDeployment md = new ManagedDeploymentImpl(unit.getName(), simpleName, parent, validUnitMOs);
      if(types.length > 0)
      {
View Full Code Here


      Map<String, Annotation> annotations = mo.getAnnotations();
      getLog().info(annotations);
      ManagementDeployment mda = (ManagementDeployment) annotations.get(ManagementDeployment.class.getName());
      assertNotNull(mda);
      assertEquals(DeploymentPhase.APPLICATION, mda.phase());
      assertEquals(1, mda.types().length);
      assertEquals("jms", mda.types()[0]);

      // Create a ManagedDeployment for the root MO
      Map<String, ManagedObject> unitMOs = Collections.singletonMap(JmsDestinations.class.getName(), mo);
      ManagedDeploymentImpl md = new ManagedDeploymentImpl("testManagementDeploymentMO",
View Full Code Here

      getLog().info(annotations);
      ManagementDeployment mda = (ManagementDeployment) annotations.get(ManagementDeployment.class.getName());
      assertNotNull(mda);
      assertEquals(DeploymentPhase.APPLICATION, mda.phase());
      assertEquals(1, mda.types().length);
      assertEquals("jms", mda.types()[0]);

      // Create a ManagedDeployment for the root MO
      Map<String, ManagedObject> unitMOs = Collections.singletonMap(JmsDestinations.class.getName(), mo);
      ManagedDeploymentImpl md = new ManagedDeploymentImpl("testManagementDeploymentMO",
            "testManagementDeploymentMO", DeploymentPhase.APPLICATION, null, unitMOs);
View Full Code Here

      Map<String, Annotation> annotations = mo.getAnnotations();
      getLog().info(annotations);
      ManagementDeployment mda = (ManagementDeployment) annotations.get(ManagementDeployment.class.getName());
      assertNotNull(mda);
      assertEquals(DeploymentPhase.APPLICATION, mda.phase());
      assertEquals(1, mda.types().length);
      assertEquals("jms", mda.types()[0]);
   }

}
View Full Code Here

      getLog().info(annotations);
      ManagementDeployment mda = (ManagementDeployment) annotations.get(ManagementDeployment.class.getName());
      assertNotNull(mda);
      assertEquals(DeploymentPhase.APPLICATION, mda.phase());
      assertEquals(1, mda.types().length);
      assertEquals("jms", mda.types()[0]);
   }

}
View Full Code Here

         if(phase == null)
            phase = mdAnnotation.phase();
         String mdaSimpleName = mdAnnotation.simpleName();
         if(mdaSimpleName.length() > 0 && ManagementConstants.GENERATED.equals(mdaSimpleName) == false)
            simpleName = mdAnnotation.simpleName();
         types = mdAnnotation.types();
      }
      if( phase == null )
         phase = DeploymentPhase.APPLICATION;
     
      ManagedDeployment md = new ManagedDeploymentImpl(unit.getName(), simpleName, phase, parent, validUnitMOs);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.