Package org.jboss.managed.api

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


    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

    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

        .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

    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

    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

      {
         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

   /**
    * TODO Process the Bootstrap server.
    */
   protected void processServer()
   {
      ComponentType type = new ComponentType("MCBean", "MCServer");
      ManagedObject serverMO = managedObjectFactory.initManagedObject(server, "JBossServer", null);
      if (serverMO.getOperations() != null && serverMO.getOperations().size() == 0)
      {
         ManagedOperationImpl shutdown = new ManagedOperationImpl("Shutdown the server", "shutdown");
         if (serverMO instanceof MutableManagedObject)
         {
            HashSet<ManagedOperation> ops = new HashSet<ManagedOperation>();
            ops.add(shutdown);
            MutableManagedObject mmo = MutableManagedObject.class.cast(serverMO);
            mmo.setOperations(ops);
         }
      }
      ManagedComponentImpl serverComp = new ManagedComponentImpl(type, null, serverMO);

      // ServerConfig
      type = new ComponentType("MCBean", "ServerConfig");
      ManagedObject mo = managedObjectFactory.initManagedObject(server.getConfiguration(), null);
      ManagedComponentImpl configComp = new ManagedComponentImpl(type, null, mo);

      view.addManagedComponent(serverComp);
      view.addManagedComponent(configComp);
View Full Code Here

      createComponentTest("XADataSourceTemplate", propValues, "testXaDs",
         KnownComponentTypes.DataSourceTypes.XA.getType(), jndiName);
      // Query the interleaving
      ManagementView mgtView = getManagementView();
      ComponentType type = KnownComponentTypes.DataSourceTypes.XA.getType();
      ManagedComponent txcf = mgtView.getComponent(jndiName, type);
      assertNotNull(txcf);
      ManagedProperty interleaving = txcf.getProperty("interleaving");
      assertNotNull("interleaving", interleaving);
      MetaValue interleavingMV = interleaving.getValue();
View Full Code Here

      // todo: how to set the specific domain?
      //ApplicationManagedSecurityMetaData secDomain = new ApplicationManagedSecurityMetaData();
      //props.get("security-domain").setValue(secDomain);

      createComponentTest("TxConnectionFactoryTemplate", propValues, "testTxCf",
         new ComponentType("ConnectionFactory", "Tx"), jndiName);
      // Query the interleaving
      ManagementView mgtView = getManagementView();
      ComponentType type = new ComponentType("ConnectionFactory", "Tx");
      ManagedComponent txcf = mgtView.getComponent(jndiName, type);
      assertNotNull(txcf);
      ManagedProperty interleaving = txcf.getProperty("interleaving");
      assertNotNull("interleaving", interleaving);
      MetaValue interleavingMV = interleaving.getValue();
View Full Code Here

TOP

Related Classes of org.jboss.managed.api.ComponentType

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.