Examples of addProperty()


Examples of nexj.core.meta.j2ee.J2EEResourceRef.addProperty()

                  {
                     ref.setResourceAdapterName(SysUtil.NAMESPACE + "-file.rar");
                     ref.setTxMode(J2EEResourceRef.TX_XA);
                     ref.setMaxConnections(fragment.getMaxPoolSize());
                    
                     ref.addProperty(new J2EEProperty("persistenceConnection", true));
                     ref.addProperty(new J2EEProperty("inputConnection", false));
                     ref.addProperty(new J2EEProperty("outgoingDirectory", fragment.getDataDirectory()));
                     ref.addProperty(new J2EEProperty("outgoingTempDirectory", fragment.getTemporaryDirectory()));
                    
                     ref.addProperty(new J2EEProperty("maxNameSplits", fragment.getMaxNameSplits()));

Examples of org.andromda.core.configuration.Namespace.addProperty()

        mergeMappings.setName(NamespaceProperties.MERGE_MAPPINGS_URI);
        mergeMappings.setValue(mergeMappingsUri.toString());
        final String namespaceName = "test-namespace";
        final Namespace namespace = new Namespace();
        namespace.setName(namespaceName);
        namespace.addProperty(mergeMappings);
        Namespaces.instance().addNamespace(namespace);
        final VelocityTemplateEngine engine = new VelocityTemplateEngine();
        engine.initialize(namespaceName);
        StringWriter writer = new StringWriter();
        String path = packagePath + "/merge-test.vsl";

Examples of org.apache.accumulo.core.client.ClientConfiguration.addProperty()

      return;
    }

    String absPath = getKeyStoreUrl(keystore);
    ClientConfiguration clientConf = new ClientConfiguration();
    clientConf.addProperty(Property.GENERAL_SECURITY_CREDENTIAL_PROVIDER_PATHS.getKey(), absPath);

    AccumuloConfiguration accClientConf = ServerConfigurationUtil.convertClientConfig(DefaultConfiguration.getInstance(), clientConf);
    Assert.assertEquals("mysecret", accClientConf.get(Property.INSTANCE_SECRET));
  }
 

Examples of org.apache.ambari.server.api.query.Query.addProperty()

    expect(request.getResource()).andReturn(resource);
    expect(request.getFields()).andReturn(mapPartialResponseFields);
    expect(resource.getQuery()).andReturn(query);

    query.addProperty("foo", "bar", null);
    expectLastCall().andThrow(new IllegalArgumentException("testMsg"));

    replay(request, resource, query);

    ReadHandler handler = new ReadHandler();

Examples of org.apache.archiva.admin.model.beans.ProxyConnector.addProperty()

        action.prepare();
        ProxyConnector connector = action.getConnector();
        populateProxyConnector( connector );

        // Add some arbitrary properties.
        connector.addProperty( "username", "general-tso" );
        connector.addProperty( "password", "chicken" );

        // Perform Test w/no property key.
        preRequest( action );
        String status = action.removeProperty();

Examples of org.apache.aries.blueprint.mutable.MutableBeanMetadata.addProperty()

        factory2.setId(".camelBlueprint.factory." + id);
        factory2.setFactoryComponent(factory);
        factory2.setFactoryMethod("call");
        factory2.setInitMethod("afterPropertiesSet");
        factory2.setDestroyMethod("destroy");
        factory2.addProperty("blueprintContainer", createRef(context, "blueprintContainer"));

        MutableBeanMetadata ctx = context.createMetadata(MutableBeanMetadata.class);
        ctx.setId(id);
        ctx.setRuntimeClass(KeyStoreParameters.class);
        ctx.setFactoryComponent(factory2);

Examples of org.apache.aries.blueprint.reflect.BeanMetadataImpl.addProperty()

                Element e = (Element) node;
                if (isBlueprintNamespace(node.getNamespaceURI())) {               
                    if (nodeNameEquals(node, ARGUMENT_ELEMENT)) {
                        metadata.addArgument(parseBeanArgument(metadata, e));
                    } else if (nodeNameEquals(node, PROPERTY_ELEMENT)) {
                        metadata.addProperty(parseBeanProperty(metadata, e));
                    }
                }
            }
        }

Examples of org.apache.bval.jsr.util.PathImpl.addProperty()

     * @return the path in dot notation
     */
    public PathImpl getPropertyPath() {
        PathImpl currentPath = PathImpl.copy(path);
        if (getMetaProperty() != null) {
            currentPath.addProperty(getMetaProperty().getName());
        }
        return currentPath;
    }

    /**
 

Examples of org.apache.bval.jsr303.ApacheValidatorConfiguration.addProperty()

    }

    private ValidatorFactory getFactory() {
        ApacheValidatorConfiguration config =
              Validation.byProvider(ApacheValidationProvider.class).configure();
        config.addProperty(VALIDATION_XML_PATH, "sample-validation.xml");
        return config.buildValidatorFactory();
    }

    public void testXmlEntitySample() {
        XmlEntitySampleBean bean = new XmlEntitySampleBean();

Examples of org.apache.bval.jsr303.util.PathImpl.addProperty()

     * @return the path in dot notation
     */
    public PathImpl getPropertyPath() {
        PathImpl currentPath = PathImpl.copy(path);
        if (getMetaProperty() != null) {
            currentPath.addProperty(getMetaProperty().getName());
        }
        return currentPath;
    }

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