Examples of updateComponent()


Examples of org.apache.tapestry.services.ResponseBuilder.updateComponent()

     * @param comps
     */
    public void updateComponents(List<String> comps) {
        ResponseBuilder builder = getPage().getRequestCycle().getResponseBuilder();
        for(String compId : comps) {
            builder.updateComponent(compId);
        }
    }

    /**
     *
 
View Full Code Here

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

       
        ProfileServiceUtil.convertConfigurationToManagedProperties(managedProperties, resourceConfig, resourceContext.getResourceType(), managedComponent.getName());

        try {
          managementView.updateComponent(managedComponent);
        } catch (Exception e) {
          LOG.error("Unable to update component [" //$NON-NLS-1$
              + managedComponent.getName() + "] of type " //$NON-NLS-1$
              + componentType + ".", e); //$NON-NLS-1$
          report.setStatus(ConfigurationUpdateStatus.FAILURE);
View Full Code Here

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

          }
        }
      }

      try {
        managementView.updateComponent(managedComponent);
        managementView.load();
      } catch (Exception e) {
        LOG.error("Unable to update component ["
            + managedComponent.getName() + "] of type "
            + componentType + ".", e);
View Full Code Here

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

          .getProperties();

      ProfileServiceUtil.convertConfigurationToManagedProperties(managedProperties, resourceConfig, resourceContext.getResourceType(), null);

      try {
        managementView.updateComponent(managedComponent);
      } catch (Exception e) {
        LOG.error("Unable to update component [" //$NON-NLS-1$
            + managedComponent.getName() + "] of type " //$NON-NLS-1$
            + componentType + ".", e); //$NON-NLS-1$
        report.setStatus(ConfigurationUpdateStatus.FAILURE);
View Full Code Here

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

  protected void updateComponent(ManagedComponent managedComponent)
      throws Exception {
    log.trace("Updating " + this.name + " with component " //$NON-NLS-1$ //$NON-NLS-2$
        + managedComponent.toString() + "..."); //$NON-NLS-1$
    ManagementView managementView = getConnection().getManagementView();
    managementView.updateComponent(managedComponent);

  }

  @Override
  public void deleteResource() throws Exception {
View Full Code Here

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

          ManagedProperty mappedRoleNameMp = managedObject.getProperty("mappedRoleNames"); //$NON-NLS-1$
          mappedRoleNameMp.setValue(convertListOfStringsToMetaValue(mappedRoleNameList));
        }

        try {
          managementView.updateComponent(managedComponent);
          managementView.load();
        } catch (Exception e) {
          LOG.error("Unable to update component [" //$NON-NLS-1$
              + managedComponent.getName() + "] of type " //$NON-NLS-1$
              + componentType + ".", e); //$NON-NLS-1$
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()

     
      property.setValue(SimpleValueSupport.wrap(21));
     
      // TODO test more properties.
     
      managementView.updateComponent(component);
   }

}
View Full Code Here

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

         CompositeValue collection = (CompositeValue) configProps.getValue();
         configProps.setValue(collection);
        
        
         // update component
         mgtView.updateComponent(mc);
        
        
         // See if the changes are reflected in the managedView after a reload
         mgtView = getManagementView();
        
View Full Code Here

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

      property.setValue(SimpleValueSupport.wrap(34));
     
      property = mc.getProperty("max-pool-size");
      property.setValue(SimpleValueSupport.wrap(34));
     
      mgtView.updateComponent(mc);
    
   }
  
  
   public void testNestedDS() throws Exception
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.