Examples of removeComponent()


Examples of org.jboss.as.ee.component.EEModuleDescription.removeComponent()

    protected abstract void processAnnotation(final DeploymentUnit unit, final EEModuleDescription eeModuleDescription) throws DeploymentUnitProcessingException;

    static ComponentDescription createComponentDescription(final DeploymentUnit unit, final String componentName, final String componentClassName, final String dependsOnEndpointClassName) {
        final EEModuleDescription moduleDescription = getRequiredAttachment(unit, EE_MODULE_DESCRIPTION);
        // JBoss WEB processors may install fake components for WS endpoints - removing them forcibly
        moduleDescription.removeComponent(componentName, componentClassName);
        // register WS component
        ComponentDescription componentDescription = new WSComponentDescription(componentName, componentClassName, moduleDescription, unit.getServiceName());
        moduleDescription.addComponent(componentDescription);
        // register WS dependency
        final ServiceName endpointServiceName = EndpointService.getServiceName(unit, dependsOnEndpointClassName);
View Full Code Here

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

      ManagedComponent remove = mgtView.getComponent("ProfileServiceTestRemoveDataSource", locaDSType);
      assertNotNull(remove);
      ManagedComponent test2 = mgtView.getComponent("ProfileServiceTestDataSource2", locaDSType);
      assertNotNull(test2)
      // Remove
      mgtView.removeComponent(remove);
     
      // Redeploy
      DeploymentProgress progress = getDeploymentManager().redeploy(test1.getDeployment().getName());
      progress.run();
     
View Full Code Here

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

        ManagedComponent managedComponent = getManagedComponent();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Removing " + getResourceDescription() + " with component " + toString(managedComponent) + "...");
        }
        ManagementView managementView = getConnection().getManagementView();
        managementView.removeComponent(managedComponent);
        ManagedDeployment parentDeployment = managedComponent.getDeployment();

        if (parentDeployment.getComponents().size() > 1 || !parentDeployment.getChildren().isEmpty()) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Redeploying parent deployment '" + parentDeployment.getName()
View Full Code Here

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

      ManagedComponent remove = mgtView.getComponent("ProfileServiceTestRemoveDataSource", locaDSType);
      assertNotNull(remove);
      ManagedComponent test2 = mgtView.getComponent("ProfileServiceTestDataSource2", locaDSType);
      assertNotNull(test2)
      // Remove
      mgtView.removeComponent(remove);
      mgtView.process();
     
      // Redeploy
      DeploymentProgress progress = getDeploymentManager().redeploy(test1.getDeployment().getName());
      progress.run();
View Full Code Here

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

         // Remove
         component = md.getComponent("testRemoveQueue");
         assertNotNull(component);
        
         //
         mgtView.removeComponent(component);
         redeploy(component.getDeployment().getName());
        
         // Check removed
         mgtView = getManagementView();
         component = mgtView.getComponent("testRemoveQueue", QueueType);
View Full Code Here

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

         // Remove
         component = md.getComponent("testRemoveTopic");
         assertNotNull(component);
        
         //
         mgtView.removeComponent(component);
         redeploy(component.getDeployment().getName());
        
         mgtView = getManagementView();
         component = mgtView.getComponent("testRemoveTopic", TopicType);
         assertNull("topic removed", component);
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment.removeComponent()

       for (ManagedComponent comp : comps)
       {
        if (componentName.equals(comp.getName()))
        {
          ManagedDeployment deployment = comp.getDeployment();
          deployment.removeComponent(componentName);
          break;
        }    
       }
     }
   }
View Full Code Here

Examples of org.jboss.managed.api.ManagedDeployment.removeComponent()

       for (ManagedComponent comp : comps)
       {
        if (componentName.equals(comp.getName()))
        {
          ManagedDeployment deployment = comp.getDeployment();
          deployment.removeComponent(componentName);
          break;
        }    
       }
     }
   }
View Full Code Here

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

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

   /**
    * Update a ManagedComponent.
View Full Code Here

Examples of org.jdesktop.mtgame.Entity.removeComponent()

  Entity entity = event.getEntity();
  SpinProcessor spinner = (SpinProcessor) entity.getComponent(SpinProcessor.class);
  if (spinner != null) {
      // Stop the spinning
      spinner.stop();
      entity.removeComponent(SpinProcessor.class);
  } else {
      // Start the spinning
      try {
    entity.addComponent(SpinProcessor.class, new SpinProcessor(entity));
      } catch (InstantiationException ex) {
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.