Examples of ComponentType


Examples of org.jboss.managed.api.ComponentType

    resourceConfiguration = report.getConfiguration().deepCopy();

    Configuration resourceConfig = report.getConfiguration();

    ManagementView managementView = null;
    ComponentType componentType = null;
    if (this.getComponentType().equals(
        PluginConstants.ComponentType.VDB.NAME)) {
      componentType = new ComponentType(
          PluginConstants.ComponentType.VDB.TYPE,
          PluginConstants.ComponentType.VDB.SUBTYPE);
    } else {
      report.setStatus(ConfigurationUpdateStatus.FAILURE);
      report
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    Configuration defaultPluginConfig = getDefaultPluginConfiguration(resourceType);
    Configuration resourceConfig = createResourceReport
        .getResourceConfiguration();
    String resourceName = getResourceName(defaultPluginConfig,
        resourceConfig);
    ComponentType componentType = ProfileServiceUtil
        .getComponentType(resourceType);
    ManagementView managementView = null;
    ;
    managementView = getConnection().getManagementView();
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

          + "] is not defined in initial Resource configuration."); //$NON-NLS-1$
    return propToUseAsResourceName.getStringValue();
  }

  private String getResourceKey(ResourceType resourceType, String resourceName) {
    ComponentType componentType = ProfileServiceUtil
        .getComponentType(resourceType);
    if (componentType == null)
      throw new IllegalStateException("Unable to map " + resourceType //$NON-NLS-1$
          + " to a ComponentType."); //$NON-NLS-1$
    return componentType.getType() + ":" + componentType.getSubtype() + ":" //$NON-NLS-1$ //$NON-NLS-2$
        + resourceName;
  }
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    Set<DiscoveredResourceDetails> discoveredResources = new HashSet<DiscoveredResourceDetails>();
    ProfileServiceConnection connection = ((PlatformComponent) discoveryContext
        .getParentResourceComponent()).getConnection();
 
    Set<ManagedComponent> translators = ProfileServiceUtil
        .getManagedComponents(connection, new ComponentType(
            PluginConstants.ComponentType.Translator.TYPE,
            PluginConstants.ComponentType.Translator.SUBTYPE));

    for (ManagedComponent translator : translators) {
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    Set<DiscoveredResourceDetails> discoveredResources = new HashSet<DiscoveredResourceDetails>();
    ProfileServiceConnection connection = ((PlatformComponent) discoveryContext
        .getParentResourceComponent()).getConnection();

    Set<ManagedComponent> vdbs = ProfileServiceUtil
        .getManagedComponents(connection, new ComponentType(
            PluginConstants.ComponentType.VDB.TYPE,
            PluginConstants.ComponentType.VDB.SUBTYPE));
   
    PropertySimple displayPreviewVdbs = ((PlatformComponent)discoveryContext.getParentResourceComponent()).getResourceConfiguration().getSimple("displayPreviewVDBS");
   
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    Configuration resourceConfig = report.getConfiguration();
    resourceConfiguration = resourceConfig.deepCopy();

    // Get the vdb and update date role anyAuthenticated and MappedRoleNames
    ManagementView managementView = null;
    ComponentType componentType = new ComponentType(
        PluginConstants.ComponentType.VDB.TYPE,
        PluginConstants.ComponentType.VDB.SUBTYPE);

    ManagedComponent managedComponent = null;
    ManagedProperty anyAuthenticatedMp = null;
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

        .getParentResourceComponent();
    ManagedComponent mcVdb = null;
    Configuration configuration = resourceContext.getPluginConfiguration();
    try {
      mcVdb = ProfileServiceUtil.getManagedComponent(getConnection(),
          new ComponentType(PluginConstants.ComponentType.VDB.TYPE,
              PluginConstants.ComponentType.VDB.SUBTYPE),
          parentComponent.name);
    } catch (NamingException e) {
      final String msg = "NamingException in loadResourceConfiguration(): " + e.getMessage(); //$NON-NLS-1$
      LOG.error(msg, e);
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    if (subtype == null || subtype.equals("")) //$NON-NLS-1$
      throw new IllegalStateException(
          "Required plugin configuration property '" //$NON-NLS-1$
              + TranslatorComponent.Config.COMPONENT_SUBTYPE
              + "' is not defined in default template."); //$NON-NLS-1$
    ComponentType componentType = new ComponentType(type, subtype);
    COMPONENT_TYPE_CACHE.put(resourceTypeName, componentType);
    return componentType;
  }
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    VDBComponent parenComponent = (VDBComponent) discoveryContext
        .getParentResourceComponent();
    ProfileServiceConnection connection = parenComponent.getConnection();

    ManagedComponent mcVdb = ProfileServiceUtil.getManagedComponent(
        connection, new ComponentType(
            PluginConstants.ComponentType.VDB.TYPE,
            PluginConstants.ComponentType.VDB.SUBTYPE),
        parenComponent.name);

    // Get data roles from VDB
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

      {
         throw new IllegalArgumentException("componentName must be specified");
      }

      // Get the SLSB Type
      final ComponentType componentType = new ComponentType(COMPONENT_TYPE_EJB3, componentSubType);
      final Set<ManagedComponent> components = managementView.getComponentsForType(componentType);

      // Get SLSB
      final Iterator<ManagedComponent> componentsIt = components.iterator();
      ManagedComponent component = 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.