Examples of updateComponent()


Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()

         assertEquals(property.getValue(), SimpleValueSupport.wrap(22));
         // change
         property.setValue(SimpleValueSupport.wrap(19));
        
         // updateComponent and process()
         mgtView.updateComponent(mc);
      
         // See if the changes are reflected in the managedView after a reload
         mgtView = getManagementView();

         ManagedComponent comp2 = getManagedComponent(mgtView, "ChangedNestedDsJNDIName");
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()

      ManagedProperty minSize = props.get("min-pool-size");
      minSize.setValue(SimpleValueSupport.wrap(new Integer(13)));
      ManagedProperty maxSize = props.get("max-pool-size");
      maxSize.setValue(SimpleValueSupport.wrap(new Integer(53)));

      mgtView.updateComponent(hsqldb);

      // TODO: Query the mbeans to validate the change
      // TODO: Query the profile service repository for the overriden data
   }
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()

      assertTrue("MapCompositeMetaType", value.getMetaType() instanceof MapCompositeMetaType);
     
      MapCompositeValueSupport cValue = (MapCompositeValueSupport) value;
      cValue.put("testKey", new SimpleValueSupport(SimpleMetaType.STRING, "testValue"));
     
      mgtView.updateComponent(dsMC);

      mgtView = getManagementView();
      dsMC = getManagedComponent(mgtView, compType, jndiName);
      configProperty = dsMC.getProperty("config-property");
      assertNotNull(configProperty);
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()

         assertNotNull(property);
         assertEquals(property.getValue(), SimpleValueSupport.wrap(2000));
        
         property.setValue(SimpleValueSupport.wrap(3000));
        
         mgtView.updateComponent(component);

         // Remove
         component = md.getComponent("testRemoveQueue");
         assertNotNull(component);
        
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()

      assertNotNull(queue);
      assertEquals("testQueueTemplate", queue.getName());
     
      // Test with a empty value
      queue.getProperty("securityConfig").setValue(new MapCompositeValueSupport(new HashMap<String, MetaValue>(), securityConfType));
      mgtView.updateComponent(queue);
     
      //
      mgtView = getManagementView();
      queue = mgtView.getComponent("testQueueTemplate", type);
     
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()

      values.put("user", createCompositeValue(false, false, false));
      MapCompositeValueSupport map= new MapCompositeValueSupport(values, securityConfType);

      // Test a normal value
      queue.getProperty("securityConfig").setValue(map);
      mgtView.updateComponent(queue);

      mgtView = getManagementView();
      queue = mgtView.getComponent("testQueueTemplate", type);
      MapCompositeValueSupport securityConfig = (MapCompositeValueSupport) queue.getProperty("securityConfig").getValue();
      assertEquals(map, securityConfig);
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()

      assertEquals(map, securityConfig);
     
      securityConfig.remove("publisher");
     
      // Test remove
      mgtView.updateComponent(queue);
      securityConfig = (MapCompositeValueSupport) queue.getProperty("securityConfig").getValue();
      assertNotNull(securityConfig);
      assertNull(securityConfig.get("publisher"));
     
   }
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()

         assertNotNull(property);
         assertEquals(property.getValue(), SimpleValueSupport.wrap(2000));
        
         property.setValue(SimpleValueSupport.wrap(3000));
        
         mgtView.updateComponent(component);
        
         // Remove
         component = md.getComponent("testRemoveTopic");
         assertNotNull(component);
        
View Full Code Here

Examples of org.jboss.system.server.profileservice.persistence.component.ComponentMapper.updateComponent()

   {
      if(root == null)
         throw new IllegalArgumentException("null persistence root");
     
      ComponentMapper mapper = getComponentMapper(parent);
      PersistedComponent persistedComponent = mapper.updateComponent(parent.getAttachment(), component);
      return addPersistedComponent(root, persistedComponent);
   }

   /**
    * Reset a component. This will remove the persisted information.
View Full Code Here

Examples of org.jboss.system.server.profileservice.persistence.component.ComponentMapper.updateComponent()

    */
   @Override
   public PersistenceRoot resetComponent(PersistenceRoot root, ManagedObject parent, ManagedComponent component)
   {
      ComponentMapper mapper = getComponentMapper(parent);
      PersistedComponent persistedComponent = mapper.updateComponent(parent.getAttachment(), component);
      // Map the components
      Map<String, PersistedComponent> components = mapComponents(root);
      // Remove the component
      PersistedComponent previous = components.remove(persistedComponent.getOriginalName());
      if(previous == null)
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.