Examples of ManagedPropertyImpl


Examples of org.apache.myfaces.config.impl.digester.elements.ManagedPropertyImpl

        beanConfiguration = new ManagedBeanImpl();       
        beanConfiguration.setBeanClass(AnnotatedManagedBean2.class.getName());
        beanConfiguration.setName("managed");
        beanConfiguration.setScope("request");
       
        ManagedPropertyImpl managedProperty = new ManagedPropertyImpl();
        managedProperty.setPropertyName("managedProperty");
        managedProperty.setValue(INJECTED_VALUE);
        beanConfiguration.addProperty(managedProperty);
       
        LifecycleProviderFactory.getLifecycleProviderFactory(externalContext).release();
        servletContext.addInitParameter(DefaultLifecycleProviderFactory.LIFECYCLE_PROVIDER, TEST_LIFECYCLE_PROVIDER);
    }
View Full Code Here

Examples of org.apache.myfaces.config.impl.digester.elements.ManagedPropertyImpl

        MANAGED_LIST.add("2");
        MANAGED_MAP.put("0", "0");
        MANAGED_MAP.put("1", "1");
        MANAGED_MAP.put("2", "2");
       
        ManagedPropertyImpl managedProperty = new ManagedPropertyImpl();
        managedProperty.setPropertyName("managedProperty");
        managedProperty.setValue(INJECTED_VALUE);
       
        ManagedPropertyImpl managedList = new ManagedPropertyImpl();
        managedList.setPropertyName("managedList");
        ListEntriesImpl listEntries = makeListEntries();
        managedList.setListEntries(listEntries);
       
        ManagedPropertyImpl writeOnlyList = new ManagedPropertyImpl();
        writeOnlyList.setPropertyName("writeOnlyList");
        ListEntriesImpl writeOnlyListEntries = makeListEntries();
        writeOnlyList.setListEntries(writeOnlyListEntries);
       
        ManagedPropertyImpl managedMap = new ManagedPropertyImpl();
        managedMap.setPropertyName("managedMap");
        MapEntriesImpl mapEntries = makeMapEntries();
        managedMap.setMapEntries(mapEntries);
       
        ManagedPropertyImpl writeOnlyMap = new ManagedPropertyImpl();
        writeOnlyMap.setPropertyName("writeOnlyMap");
        MapEntriesImpl writeOnlyMapEntries = makeMapEntries();
        writeOnlyMap.setMapEntries(writeOnlyMapEntries);       
       
        managedBean.addProperty(managedProperty);
        managedBean.addProperty(managedList);
        managedBean.addProperty(writeOnlyList);
        managedBean.addProperty(managedMap);
View Full Code Here

Examples of org.apache.myfaces.config.impl.digester.elements.ManagedPropertyImpl

        // create sessionBean referencing requestBean
        ManagedBeanImpl sessionBean = new ManagedBeanImpl();
        sessionBean.setBeanClass(TestBean.class.getName());
        sessionBean.setName("sessionBean");
        sessionBean.setScope("session");
        ManagedPropertyImpl anotherBeanProperty = new ManagedPropertyImpl();
        anotherBeanProperty.setPropertyName("anotherBean");
        anotherBeanProperty.setValue("#{requestBean}");
        sessionBean.addProperty(anotherBeanProperty);
        runtimeConfig.addManagedBean("sessionBean", sessionBean);
       
        // create requestBean
        ManagedBeanImpl requestBean = new ManagedBeanImpl();
View Full Code Here

Examples of org.apache.myfaces.config.impl.digester.elements.ManagedPropertyImpl

        // create sessionBean referencing requestBean
        ManagedBeanImpl sessionBean = new ManagedBeanImpl();
        sessionBean.setBeanClass(TestBean.class.getName());
        sessionBean.setName("sessionBean");
        sessionBean.setScope("#{scopeBean.scope}");
        ManagedPropertyImpl anotherBeanProperty = new ManagedPropertyImpl();
        anotherBeanProperty.setPropertyName("anotherBean");
        anotherBeanProperty.setValue("#{requestBean}");
        sessionBean.addProperty(anotherBeanProperty);
        runtimeConfig.addManagedBean("sessionBean", sessionBean);
       
        // create requestBean
        ManagedBeanImpl requestBean = new ManagedBeanImpl();
View Full Code Here

Examples of org.apache.myfaces.config.impl.digester.elements.ManagedPropertyImpl

        // create viewBean referencing requestBean
        ManagedBeanImpl viewBean = new ManagedBeanImpl();
        viewBean.setBeanClass(TestBean.class.getName());
        viewBean.setName("viewBean");
        viewBean.setScope("view");
        ManagedPropertyImpl anotherBeanProperty = new ManagedPropertyImpl();
        anotherBeanProperty.setPropertyName("anotherBean");
        anotherBeanProperty.setValue("#{requestBean}");
        viewBean.addProperty(anotherBeanProperty);
        runtimeConfig.addManagedBean("viewBean", viewBean);
       
        // create requestBean
        ManagedBeanImpl requestBean = new ManagedBeanImpl();
View Full Code Here

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

Examples of org.jboss.managed.plugins.ManagedPropertyImpl

    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

Examples of org.jboss.managed.plugins.ManagedPropertyImpl

  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

Examples of org.jboss.managed.plugins.ManagedPropertyImpl

    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

Examples of org.jboss.managed.plugins.ManagedPropertyImpl

  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
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.