Examples of ManagedDescription


Examples of org.exoplatform.management.annotations.ManagedDescription

      {
         throw new IllegalStateException("Class " + clazz.getName() + " does not contain management annotation");
      }

      //
      ManagedDescription typeDescriptionAnn =
               AnnotationIntrospector.resolveClassAnnotations(clazz, ManagedDescription.class);
      String typeDescription = typeDescriptionAnn != null ? typeDescriptionAnn.value() : null;

      //
      Map<Method, Managed> managedMethods = AnnotationIntrospector.resolveMethodAnnotations(clazz, Managed.class);
      Map<Method, ManagedName> methodNames = AnnotationIntrospector.resolveMethodAnnotations(clazz, ManagedName.class);
      Map<Method, ManagedDescription> methodDescriptions =
               AnnotationIntrospector.resolveMethodAnnotations(clazz, ManagedDescription.class);

      //
      Map<Method, ManagedMethodMetaData> bilto = new HashMap<Method, ManagedMethodMetaData>();
      for (Map.Entry<Method, Managed> entry : managedMethods.entrySet())
      {

         Method method = entry.getKey();

         //
         ManagedDescription methodDescriptionAnn = methodDescriptions.get(method);
         String methodDescription = methodDescriptionAnn != null ? methodDescriptionAnn.value() : null;

         //
         Impact impactAnn = method.getAnnotation(Impact.class);
         ImpactType impactType = impactAnn != null ? impactAnn.value() : ImpactType.WRITE;
View Full Code Here

Examples of org.exoplatform.management.annotations.ManagedDescription

      {
         throw new IllegalStateException("Class " + clazz.getName() + " does not contain management annotation");
      }

      //
      ManagedDescription typeDescriptionAnn =
         AnnotationIntrospector.resolveClassAnnotations(clazz, ManagedDescription.class);
      String typeDescription = typeDescriptionAnn != null ? typeDescriptionAnn.value() : null;

      //
      Map<Method, Managed> managedMethods = AnnotationIntrospector.resolveMethodAnnotations(clazz, Managed.class);
      Map<Method, ManagedName> methodNames = AnnotationIntrospector.resolveMethodAnnotations(clazz, ManagedName.class);
      Map<Method, ManagedDescription> methodDescriptions =
         AnnotationIntrospector.resolveMethodAnnotations(clazz, ManagedDescription.class);

      //
      Map<Method, ManagedMethodMetaData> bilto = new HashMap<Method, ManagedMethodMetaData>();
      for (Map.Entry<Method, Managed> entry : managedMethods.entrySet())
      {

         Method method = entry.getKey();

         //
         ManagedDescription methodDescriptionAnn = methodDescriptions.get(method);
         String methodDescription = methodDescriptionAnn != null ? methodDescriptionAnn.value() : null;

         //
         Impact impactAnn = method.getAnnotation(Impact.class);
         ImpactType impactType = impactAnn != null ? impactAnn.value() : ImpactType.WRITE;
View Full Code Here

Examples of org.exoplatform.management.annotations.ManagedDescription

      {
         throw new IllegalStateException("Class " + clazz.getName() + " does not contain management annotation");
      }

      //
      ManagedDescription typeDescriptionAnn =
               AnnotationIntrospector.resolveClassAnnotations(clazz, ManagedDescription.class);
      String typeDescription = typeDescriptionAnn != null ? typeDescriptionAnn.value() : null;

      //
      Map<Method, Managed> managedMethods = AnnotationIntrospector.resolveMethodAnnotations(clazz, Managed.class);
      Map<Method, ManagedName> methodNames = AnnotationIntrospector.resolveMethodAnnotations(clazz, ManagedName.class);
      Map<Method, ManagedDescription> methodDescriptions =
               AnnotationIntrospector.resolveMethodAnnotations(clazz, ManagedDescription.class);

      //
      Map<Method, ManagedMethodMetaData> bilto = new HashMap<Method, ManagedMethodMetaData>();
      for (Map.Entry<Method, Managed> entry : managedMethods.entrySet())
      {

         Method method = entry.getKey();

         //
         ManagedDescription methodDescriptionAnn = methodDescriptions.get(method);
         String methodDescription = methodDescriptionAnn != null ? methodDescriptionAnn.value() : null;

         //
         Impact impactAnn = method.getAnnotation(Impact.class);
         ImpactType impactType = impactAnn != null ? impactAnn.value() : ImpactType.WRITE;
View Full Code Here

Examples of org.exoplatform.management.annotations.ManagedDescription

      {
         throw new IllegalStateException("Class " + clazz.getName() + " does not contain management annotation");
      }

      //
      ManagedDescription typeDescriptionAnn =
         AnnotationIntrospector.resolveClassAnnotations(clazz, ManagedDescription.class);
      String typeDescription = typeDescriptionAnn != null ? typeDescriptionAnn.value() : null;

      //
      Map<Method, Managed> managedMethods = AnnotationIntrospector.resolveMethodAnnotations(clazz, Managed.class);
      Map<Method, ManagedName> methodNames = AnnotationIntrospector.resolveMethodAnnotations(clazz, ManagedName.class);
      Map<Method, ManagedDescription> methodDescriptions =
         AnnotationIntrospector.resolveMethodAnnotations(clazz, ManagedDescription.class);

      //
      Map<Method, ManagedMethodMetaData> bilto = new HashMap<Method, ManagedMethodMetaData>();
      for (Map.Entry<Method, Managed> entry : managedMethods.entrySet())
      {

         Method method = entry.getKey();

         //
         ManagedDescription methodDescriptionAnn = methodDescriptions.get(method);
         String methodDescription = methodDescriptionAnn != null ? methodDescriptionAnn.value() : null;

         // Build the default mbean info
         ManagedMethodMetaData managedMethod = new ManagedMethodMetaData(method);
         managedMethod.setDescription(methodDescription);
View Full Code Here

Examples of org.gatein.management.api.ManagedDescription

    @Override
    public void destroy() {
    }

    private static ManagedDescription description(final String description) {
        return new ManagedDescription() {
            @Override
            public String getDescription() {
                return description;
            }
        };
View Full Code Here

Examples of org.gatein.management.api.ManagedDescription

    @Override
    public void destroy() {
    }

    private static ManagedDescription description(final String description) {
        return new ManagedDescription() {
            @Override
            public String getDescription() {
                return description;
            }
        };
View Full Code Here

Examples of org.gatein.management.api.ManagedDescription

   @Override
   public void load()
   {
      extensions = new ArrayList<ManagementExtension>();

      SimpleManagedResource resource = new SimpleManagedResource(null, null, new ManagedDescription()
      {
         @Override
         public String getDescription()
         {
            return "Root management resource.";
View Full Code Here

Examples of org.gatein.management.api.ManagedDescription

   {
   }

   private static ManagedDescription description(final String description)
   {
      return new ManagedDescription()
      {
         @Override
         public String getDescription()
         {
            return description;
View Full Code Here

Examples of org.gatein.management.api.ManagedDescription

      return registration;
   }
   private ManagedDescription description(final String description)
   {
      return new ManagedDescription()
      {
         @Override
         public String getDescription()
         {
            return description;
View Full Code Here

Examples of org.gatein.management.api.ManagedDescription

   @Override
   public void load()
   {
      extensions = new ArrayList<ManagementExtension>();

      SimpleManagedResource resource = new SimpleManagedResource(null, null, new ManagedDescription()
      {
         @Override
         public String getDescription()
         {
            return "Root management resource.";
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.