Package org.jboss.managed.plugins

Examples of org.jboss.managed.plugins.ManagedPropertyImpl


    fields.setField(TEIID_PROPERTY, SimpleValueSupport.wrap(true));
   
    if (defaultValue != null) {
      fields.setField(Fields.DEFAULT_VALUE, SimpleValueSupport.wrap(defaultValue));
    }
    return  new ManagedPropertyImpl(fields);   
  }
View Full Code Here


    mp.setValue(ManagedUtil.wrap(SimpleMetaType.STRING, "javax.sql.DataSource"));//$NON-NLS-1$ 

    mp = this.getProperties().get("dsType");//$NON-NLS-1$ 
    mp.setValue(ManagedUtil.wrap(SimpleMetaType.STRING, "local-tx-datasource"));//$NON-NLS-1$ 
   
    ManagedPropertyImpl dsTypeMP = buildConfigProperty();
    addProperty(dsTypeMP);
   
    addProperty(ConnectorTemplateInfo.buildTemplateProperty(getName()));
   
    ManagedPropertyUtil.markAsTeiidProperty(this.getProperties().get("user-name")); //$NON-NLS-1$
View Full Code Here

  static ManagedPropertyImpl buildConfigProperty() {
    DefaultFieldsImpl fields = new DefaultFieldsImpl("config-property");//$NON-NLS-1$ 
    fields.setDescription("The config-property type"); //$NON-NLS-1$ 
    fields.setMetaType(new MapCompositeMetaType (SimpleMetaType.STRING));
    ManagedPropertyImpl dsTypeMP = new ManagedPropertyImpl(fields);
    return dsTypeMP;
  }
View Full Code Here

    mp.setValue(ManagedUtil.wrap(SimpleMetaType.STRING, "javax.sql.DataSource"));//$NON-NLS-1$ 

    mp = this.getProperties().get("dsType");//$NON-NLS-1$ 
    mp.setValue(ManagedUtil.wrap(SimpleMetaType.STRING, "xa-datasource"));//$NON-NLS-1$ 
   
    ManagedPropertyImpl dsTypeMP = buildConfigProperty();
    addProperty(dsTypeMP);
   
    addProperty(ConnectorTemplateInfo.buildTemplateProperty(getName()));
   
    ManagedPropertyUtil.markAsTeiidProperty(this.getProperties().get("user-name")); //$NON-NLS-1$
View Full Code Here

  static ManagedPropertyImpl buildConfigProperty() {
    DefaultFieldsImpl fields = new DefaultFieldsImpl("config-property");//$NON-NLS-1$ 
    fields.setDescription("The config-property type"); //$NON-NLS-1$ 
    fields.setMetaType(new MapCompositeMetaType (SimpleMetaType.STRING));
    ManagedPropertyImpl dsTypeMP = new ManagedPropertyImpl(fields);
    return dsTypeMP;
  }
View Full Code Here

    fields.setMetaType(metaType);   
    if (metadata.getValue() != null && metadata.getValue().trim().length() > 0) {
      fields.setField(Fields.DEFAULT_VALUE, ManagedUtil.wrap(metaType, metadata.getValue()));
    }
   
    return new ManagedPropertyImpl(fields);
 
View Full Code Here

    {
        //GenericMetaType genericMetaType = (GenericMetaType)metaType;
        ManagedObjectImpl managedObject = new ManagedObjectImpl(propDefMap.getName());
        for (PropertyDefinition mapMemberPropDef : propDefMap.getPropertyDefinitions().values())
        {
            ManagedPropertyImpl managedProp = new ManagedPropertyImpl(mapMemberPropDef.getName());
            MetaType managedPropMetaType = ProfileServiceUtil.convertPropertyDefinitionToMetaType(mapMemberPropDef);
            managedProp.setMetaType(managedPropMetaType);
            managedProp.setManagedObject(managedObject);
            managedObject.getProperties().put(managedProp.getName(), managedProp);
        }
        GenericValue genericValue = new GenericValueSupport(new GenericMetaType(propDefMap.getName(),
                propDefMap.getDescription()), managedObject);
        populateMetaValueFromProperty(propMap, genericValue, propDefMap);
        return genericValue;
View Full Code Here

   * @return simpler ManagedPropertyImpl
   * @throws java.io.ObjectStreamException
   *             for any error
   */
  private Object writeReplace() throws ObjectStreamException {
    ManagedPropertyImpl managedProperty = new ManagedPropertyImpl(getManagedObject(), getFields());
    managedProperty.setTargetManagedObject(getTargetManagedObject());
    return managedProperty;
  }
View Full Code Here

      DefaultFieldsImpl fields = new DefaultFieldsImpl("dsType");
      fields.setDescription("The datasource type");
      fields.setMetaType(SimpleMetaType.STRING);
      fields.setValue(SimpleValueSupport.wrap(dsType));
      fields.setField(Fields.READ_ONLY, Boolean.TRUE);
      ManagedPropertyImpl dsTypeMP = new ManagedPropertyImpl(fields);
      addProperty(dsTypeMP);
     
      // DataSource
//      if("local-tx-datasource".equals(dsType))
//         createLocalTxDsTemplate();
View Full Code Here

            String mappedName = propertyNameMappings.get(name);
            if( mappedName != null )
               f.setField(Fields.MAPPED_NAME, mappedName);
         }
        
         ManagedPropertyImpl newProperty = new ManagedPropertyImpl(f);
        
         MetaValue v = defaultValues.get(name);
         if(v != null)
         {
            newProperty.setValue(v);
         }
        
         // Override
         addProperty(newProperty);
      }
View Full Code Here

TOP

Related Classes of org.jboss.managed.plugins.ManagedPropertyImpl

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.