Examples of ComponentType


Examples of org.eclipse.jst.jsf.facesconfig.emf.ComponentType

   * @param name Base name of component from which component-type and
   * component-class are formed.
   * @return {@link ComponentType} instance.
   */
  protected ComponentType createUIComponent(String name) {
    ComponentType componentType = FacesConfigFactory.eINSTANCE.createComponentType();
    //set component-type
    ComponentTypeType componentTypeType = FacesConfigFactory.eINSTANCE.createComponentTypeType();
    StringBuffer sb = new StringBuffer();
    sb.append("javax.faces."); //$NON-NLS-1$
    sb.append(name);
    componentTypeType.setTextContent(sb.toString());
    componentType.setComponentType(componentTypeType);
    //set component-class
    ComponentClassType componentClassType = FacesConfigFactory.eINSTANCE.createComponentClassType();
    sb = new StringBuffer();
    sb.append("javax.faces.component.UI"); //$NON-NLS-1$
    sb.append(name);
    componentClassType.setTextContent(sb.toString());
    componentType.setComponentClass(componentClassType);
    return componentType;
  }
View Full Code Here

Examples of org.hibernate.ogm.type.ComponentType

      }
      //let it go it will eventually fail
    }
    else if ( type instanceof org.hibernate.type.ComponentType ) {
      org.hibernate.type.ComponentType componentType = (org.hibernate.type.ComponentType) type;
      return new ComponentType(componentType, this);
    }
    else if ( type instanceof org.hibernate.type.ManyToOneType ) {
      //do some stuff
      org.hibernate.type.ManyToOneType manyToOneType = (org.hibernate.type.ManyToOneType) type;
      return new ManyToOneType(manyToOneType, this);
View Full Code Here

Examples of org.hibernate.type.ComponentType

  }

  private Type embeddedPropertyType(List<String> propertyPath, ComponentType propertyType) {
    Type subType = propertyType;
    for ( int i = 1; i < propertyPath.size(); i++ ) {
      ComponentType componentType = (ComponentType) subType;
      String name = propertyPath.get( i );
      int propertyIndex = componentType.getPropertyIndex( name );
      subType = componentType.getSubtypes()[propertyIndex];
      if ( subType.isAnyType() || subType.isAssociationType() || subType.isEntityType() ) {
        throw new UnsupportedOperationException( "Queries on associated entities are not supported yet." );
      }
    }
    return subType;
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    }

    private File getServerTempDirectory() {
        ManagementView managementView = getProfileServiceConnection().getManagementView();
        ManagedComponent serverConfigComponent = ManagedComponentUtils.getSingletonManagedComponent(managementView,
            new ComponentType("MCBean", "ServerConfig"));
        String serverTempDir = (String) ManagedComponentUtils.getSimplePropertyValue(serverConfigComponent,
            "serverTempDir");

        return new File(serverTempDir);
    }
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

  }

  private ManagedComponent getDatasource(String deployedName) throws Exception {
    ManagedComponent mc = null;
    for (String type:DS_TYPES) {
      ComponentType ct = new ComponentType("DataSource", type); //$NON-NLS-1$
      mc = getView().getComponent(deployedName, ct);
      if (mc != null) {
        return mc;
      }       
    }   
    for (String type:CF_TYPES) {
      ComponentType ct = new ComponentType("ConnectionFactory", type); //$NON-NLS-1$
      mc = getView().getComponent(deployedName, ct);
      if (mc != null) {
        return mc;
      }       
    }
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

  @Override
  public Collection<String> getDataSourceNames() throws AdminException {
    ArrayList<String> names = new ArrayList<String>();
    try {
      for (String type:DS_TYPES) {
        ComponentType ct = new ComponentType("DataSource", type); //$NON-NLS-1$
        Set<ManagedComponent> mcs = getView().getComponentsForType(ct);
        for (ManagedComponent mc:mcs) {
          names.add(((SimpleValue)mc.getProperty("jndi-name").getValue()).getValue().toString()); //$NON-NLS-1$
        }
      }   
      for (String type:CF_TYPES) {
        ComponentType ct = new ComponentType("ConnectionFactory", type); //$NON-NLS-1$
        Set<ManagedComponent> mcs = getView().getComponentsForType(ct);
        for (ManagedComponent mc:mcs) {
          names.add(((SimpleValue)mc.getProperty("jndi-name").getValue()).getValue().toString()); //$NON-NLS-1$
        }     
      }
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

  public Configuration loadResourceConfiguration() {

    ManagedComponent translator = null;
    try {
      translator = ProfileServiceUtil
      .getManagedComponent(getConnection(), new ComponentType(
          PluginConstants.ComponentType.Translator.TYPE,
          PluginConstants.ComponentType.Translator.SUBTYPE), this.name);
    } catch (NamingException e) {
      final String msg = "NamingException in loadResourceConfiguration(): " + e.getExplanation(); //$NON-NLS-1$
      LOG.error(msg, e);
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    Set<DiscoveredResourceDetails> discoveredResources = new HashSet<DiscoveredResourceDetails>();
    ProfileServiceConnection connection = ((ApplicationServerComponent) discoveryContext.getParentResourceComponent()).getConnection();
   
    ManagedComponent mc = ProfileServiceUtil.getManagedComponent(connection,
        new ComponentType(
            PluginConstants.ComponentType.Platform.TEIID_TYPE,
            PluginConstants.ComponentType.Platform.TEIID_SUB_TYPE),
            PluginConstants.ComponentType.Platform.TEIID_RUNTIME_ENGINE);
   
    if (mc==null){
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

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

    Configuration resourceConfig = report.getConfiguration();

    ManagementView managementView = null;
    ComponentType componentType = new ComponentType(
        PluginConstants.ComponentType.Platform.TEIID_TYPE,
        PluginConstants.ComponentType.Platform.TEIID_SUB_TYPE);

    report.setStatus(ConfigurationUpdateStatus.SUCCESS);
    try {
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

    // First update simple properties
    super.updateResourceConfiguration(report);

    // Then update models
    ManagementView managementView = null;
    ComponentType componentType = new ComponentType(
        PluginConstants.ComponentType.VDB.TYPE,
        PluginConstants.ComponentType.VDB.SUBTYPE);

    ManagedComponent managedComponent = null;
    CollectionValueSupport modelsMetaValue = 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.