Examples of ValueFactory


Examples of org.apache.etch.bindings.java.msg.ValueFactory

   
    TransportMessage m = new Messagizer( p, u, resources );
   
    m = addFilters( m, u, resources );
   
    ValueFactory vf = (ValueFactory) resources.get( Transport.VALUE_FACTORY );
    vf.lockDynamicTypes();
   
    return m;
  }
View Full Code Here

Examples of org.apache.slide.projector.descriptor.ValueFactory

        application.addDependency(dependency);     
            } else if ( path.matches("application/resource-types/resource-type") ) {
        String resourceTypeName = attributes.getValue("name");
        String clazz = attributes.getValue("class");
        try {
          ValueFactory descriptorFactory = (ValueFactory)factoryClassLoader.loadClass(clazz).getConstructor(new Class[0]).newInstance(new Object[0]);
          ValueFactoryManager.getInstance().registerDescriptorFactory(descriptorFactory);
          logger.log(Level.FINE, "Successfully registered descriptor factory " + clazz);
                } catch (Exception e) {
                    logger.log(Level.SEVERE, "Descriptor factory " + clazz + " could not loaded!", e);
                }
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.model.ValueFactory

     * @return the mapped representation
     */
    private Representation applyCacheMappings(Yard yard, Representation representation) {
        long start = System.currentTimeMillis();
        Representation mapped = null;
        ValueFactory valueFactory = getValueFactory();
        if (baseMapper != null) {
            mapped = yard.getValueFactory().createRepresentation(representation.getId());
            baseMapper.applyMappings(representation, mapped,valueFactory);
        }
        if (additionalMapper != null) {
View Full Code Here

Examples of org.apache.synapse.config.xml.ValueFactory

              List<Member> members = getMembers(recipientListElement);
              recipientListEndpoint.setMembers(members);

            } else if (recipientListElement.getFirstChildWithName(DYNAMIC_SET) != null) {
                OMElement dynamicSetElement = recipientListElement.getFirstChildWithName(DYNAMIC_SET);
                Value dynamicEndpointSet = new ValueFactory().createValue("value", dynamicSetElement);
                String maxCacheStr = dynamicSetElement.getAttributeValue(new QName("max-cache"));
                int maxCache = RecipientListEndpoint.DEFAULT_MAX_POOL ;
                if (maxCacheStr != null) {
                    maxCache = Integer.parseInt(maxCacheStr);
                }
View Full Code Here

Examples of org.jboss.as.service.descriptor.JBossServiceAttributeConfig.ValueFactory

        if (attributeConfigs != null) {
            final Service<Object> createDestroyService = mBeanServices.getCreateDestroyService();
            for (final JBossServiceAttributeConfig attributeConfig : attributeConfigs) {
                final String propertyName = attributeConfig.getName();
                final Inject injectConfig = attributeConfig.getInject();
                final ValueFactory valueFactoryConfig = attributeConfig.getValueFactory();

                if (injectConfig != null) {
                    final Value<?> value = getValue(injectConfig, mBeanClassHierarchy);
                    final Injector<Object> injector = getPropertyInjector(propertyName, mBeanClassHierarchy, createDestroyService, value);
                    mBeanServices.addDependency(injectConfig.getBeanName(), injector);
                } else if (valueFactoryConfig != null) {
                    final Value<?> value = getValue(valueFactoryConfig, mBeanClassHierarchy, classLoader);
                    final Injector<Object> injector = getPropertyInjector(propertyName, mBeanClassHierarchy, createDestroyService, value);
                    mBeanServices.addDependency(valueFactoryConfig.getBeanName(), injector);
                } else {
                    final Value<?> value = getValue(attributeConfig, mBeanClassHierarchy);
                    final Injector<Object> injector = getPropertyInjector(propertyName, mBeanClassHierarchy, createDestroyService, Values.injectedValue());
                    mBeanServices.addInjectionValue(injector, value);
                }
View Full Code Here

Examples of org.jboss.beans.metadata.api.annotations.ValueFactory

      {
         checkValueMetaData(vmd);
         vmd = InjectAnnotationPlugin.INSTANCE.createValueMetaData(inject);
      }

      ValueFactory vf = value.valueFactory();
      if (isAttributePresent(vf.bean()))
      {
         checkValueMetaData(vmd);
         vmd = ValueFactoryAnnotationPlugin.INSTANCE.createValueMetaData(vf);
      }
View Full Code Here

Examples of org.modeshape.jcr.api.ValueFactory

        CheckArg.isSame(inputProperty.getSession(), "inputProperty", this, "this session");
        CheckArg.isSame(outputNode.getSession(), "outputNode", this, "this session");
        Sequencer sequencer = repository().runningState().sequencers().getSequencer(sequencerName);
        if (sequencer == null) return false;

        final ValueFactory values = getValueFactory();
        final DateTime now = dateFactory().create();
        final Sequencer.Context context = new Sequencer.Context() {

            @Override
            public ValueFactory valueFactory() {
View Full Code Here

Examples of org.omg.CORBA.portable.ValueFactory

        valueFactories.remove (id);
    }

    public ValueFactory lookup_value_factory(String id)
    {
        ValueFactory result = (ValueFactory)valueFactories.get (id);

        if (result == null && id.startsWith("IDL"))
        {
            String valueName = org.jacorb.ir.RepositoryID.className(id, null);
            result = findValueFactory(valueName);
View Full Code Here

Examples of org.openrdf.model.ValueFactory

    {
      Cursor<? extends BindingSet> bindingsIter = getDelegate().evaluate(query,
          EmptyBindingSet.getInstance(), true);

      try {
        ValueFactory vf = getValueFactory();

        BindingSet bindings;
        while ((bindings = bindingsIter.next()) != null) {

          Value subj = bindings.getValue("subject");
          Value pred = bindings.getValue("predicate");
          Value obj = bindings.getValue("object");

          if (subj instanceof Resource && pred instanceof URI && obj != null) {
            statements.add(vf.createStatement((Resource)subj, (URI)pred, obj));
          }
        }
      }
      finally {
        bindingsIter.close();
View Full Code Here

Examples of org.openrdf.model.ValueFactory

public class DurationTest extends TestCase {

  public void testYearMonth()
    throws Exception
  {
    ValueFactory vf = new ValueFactoryImpl();
    Literal lit = vf.createLiteral("P1Y", DURATION_YEARMONTH);
    Duration duration = lit.durationValue();
    assertEquals(lit, vf.createLiteral(duration));
  }
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.