Package org.jboss.managed.api.annotation

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


      assertNotNull(mo);
      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);
View Full Code Here


      assertNotNull(mo);
      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

      String simpleName = unit.getSimpleName();
      String[] types = {};
      if(mdAnnotation != null)
      {
         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();
      }
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.