Package org.gatein.management.api

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


    @Override
    public void destroy() {
    }

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

   @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

   {
   }

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

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

   @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

      return resource;
   }

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

         ReadResourceModel readResourceModel = new ReadResourceModel("Available operations and children (sub-resources).", children);

         // Set children descriptions
         for (String child : children)
         {
            ManagedDescription desc = resource.getResourceDescription(address.append(child));
            readResourceModel.setChildDescription(child, desc.getDescription());
         }

         // Set operation descriptions
         Map<String, ManagedDescription> descriptions = resource.getOperationDescriptions(address);
         for (Map.Entry<String, ManagedDescription> desc : descriptions.entrySet())
         {
            readResourceModel.addOperation(new NamedDescription(desc.getKey(), desc.getValue().getDescription()));
         }

         return readResourceModel;
      }
View Full Code Here

    @Override
    public void destroy() {
    }

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

TOP

Related Classes of org.gatein.management.api.ManagedDescription

Copyright © 2018 www.massapicom. 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.