Examples of ObjectFactory


Examples of org.apache.ws.scout.model.uddi.v2.ObjectFactory

 
    public BusinessLifeCycleManagerImpl(RegistryService registry) {
      super(registry);
       
        if(objectFactory == null)
          objectFactory = new ObjectFactory();       
    }
View Full Code Here

Examples of org.apache.wss4j.binding.wss10.ObjectFactory

                        new org.apache.xml.security.binding.xmldsig.ObjectFactory().createX509Data((X509DataType) object);
                keyInfoType = new KeyInfoType();
                SecurityTokenReferenceType securityTokenReferenceType = new SecurityTokenReferenceType();
                securityTokenReferenceType.getAny().add(x509DataTypeJAXBElement);
                JAXBElement<SecurityTokenReferenceType> securityTokenReferenceTypeJAXBElement =
                        new ObjectFactory().createSecurityTokenReference(securityTokenReferenceType);
                keyInfoType.getContent().add(securityTokenReferenceTypeJAXBElement);
            } else if (object instanceof EncryptedKeyType) {
                EncryptedKeyType encryptedKeyType = (EncryptedKeyType) object;
               
                WSSEncryptedKeyInputHandler encryptedKeyInputHandler = new WSSEncryptedKeyInputHandler();
                encryptedKeyInputHandler.handle(inputProcessorChain, encryptedKeyType, xmlSecStartElement, securityProperties);
               
                SecurityTokenProvider<? extends InboundSecurityToken> securityTokenProvider =
                    inputProcessorChain.getSecurityContext().getSecurityTokenProvider(encryptedKeyType.getId());
                if (securityTokenProvider != null) {
                    return securityTokenProvider.getSecurityToken();
                }
             
            } else if (object instanceof SecurityTokenReferenceType) {
                JAXBElement<SecurityTokenReferenceType> securityTokenReferenceTypeJAXBElement =
                        new ObjectFactory().createSecurityTokenReference((SecurityTokenReferenceType) object);
                keyInfoType = new KeyInfoType();
                keyInfoType.getContent().add(securityTokenReferenceTypeJAXBElement);
            } else if (object instanceof KeyValueType) {
                JAXBElement<KeyValueType> keyValueTypeJAXBElement =
                        new org.apache.xml.security.binding.xmldsig.ObjectFactory().createKeyValue((KeyValueType) object);
View Full Code Here

Examples of org.auto.comet.ObjectFactory

      ServletContext servletContext) {

    Object object = newInstance(className);

    if (object instanceof ObjectFactory) {
      ObjectFactory factory = (ObjectFactory) object;
      factory.init(servletContext);
      return factory;
    } else {
      throw new IllegalStateException("ObjectFactory must implements ["
          + ObjectFactory.class.getName() + "]");
    }
View Full Code Here

Examples of org.cafesip.jiplet.config.jip.ObjectFactory

     */
    public String addContextMapping(String context, String mapping)
    {
        try
        {
            ObjectFactory factory = new ObjectFactory();

            if (contextMappings == null)
            {
                contextMappings = factory.createContextMappings();
            }

            synchronized (contextMappings)
            {
                // next, unmarshall the mapping object
View Full Code Here

Examples of org.caffinitas.mapper.core.accessors.ObjectFactory

        //  instance = (T) session.persistenceManager.objectFactory.newInstance(type);
        //}
        //
        //session.loaded(this, retriever, instance);

        ObjectFactory objectFactory = session.persistenceManager.objectFactory;

        int protocolVersion = session.persistenceManager.protocolVersion;

        MapEntity instance = null;
        if (last != null) {
            boolean same = true;
            for (MappedAttribute partitionAttribute : partitionAttributes) {
                CqlColumn col = ((MappedAttributeSingle) partitionAttribute).singleColumn();
                ByteBuffer ser = col.dataType.serialize(partitionAttribute.accessor.getObject(last), protocolVersion);
                if (!ser.equals(retriever.getBytesUnsafe(col))) {
                    same = false;
                    break;
                }
            }
            if (same) {
                instance = (MapEntity) last;
            }
        }
        if (instance == null) {
            instance = (MapEntity) objectFactory.newInstance(type);
            for (MappedAttribute attr : partitionAttributes) {
                attr.fromRow(session, instance, instance, retriever);
            }
        }

        Object key;
        if (clusteringColumn != null) {
            key = clusteringPrimitive.deserialize(retriever.getBytesUnsafe(clusteringColumn), protocolVersion);
        } else {
            key = objectFactory.newInstance(clusteringType);
            for (MappedAttribute attr : clusteringKeyAttributes) {
                attr.fromRow(session, key, key, retriever);
            }
        }

        Object value;
        if (valueColumn != null) {
            value = valuePrimitive.deserialize(retriever.getBytesUnsafe(valueColumn), protocolVersion);
        } else {
            value = objectFactory.newInstance(valueType);
            for (MappedAttribute attr : valueAttributes) {
                attr.fromRow(session, value, value, retriever);
            }
        }
View Full Code Here

Examples of org.codehaus.aspectwerkz.extension.objectfactory.ObjectFactory

                final Class indexFieldType = index.getFieldType();
                final Class indexType = (Class)m_jispIndexTypes.get(index.getIndexName());

                final Object indexFieldValue = method.invoke(obj, new Object[]{});

                ObjectFactory factory = new DefaultObjectFactory(
                        indexType,
                        new Class[]{indexFieldType},
                        new Object[]{indexFieldValue});

                keyArray[i] = (KeyObject)factory.newInstance();
            }
            catch (Exception e) {
                throw new WrappedRuntimeException(e);
            }
        }
View Full Code Here

Examples of org.d_haven.mpool.ObjectFactory

        // get info from params
        final ComponentHandler handler;

        try
        {
            final ObjectFactory factory =
                    createObjectFactory( classname, configuration );

            // create the appropriate handler instance
            final ComponentHandler targetHandler =
                    (ComponentHandler) handlerClass.newInstance();
View Full Code Here

Examples of org.docx4j.dml.diagram.ObjectFactory

      return unmarshal( is );    // side-effect is to set jaxbElement  
    }
   
    public void CreateMinimalContent(String uniqueId) {

    ObjectFactory factory = new ObjectFactory();
   
    CTColorTransform colorsDef = factory.createCTColorTransform();
    colorsDef.setUniqueId(uniqueId);
   
    this.setJaxbElement(colorsDef);     
    }
View Full Code Here

Examples of org.docx4j.model.structure.jaxb.ObjectFactory

    this.conversionSections = conversionSections;
  }

  public Sections createSections() {
   
    ObjectFactory factory = new ObjectFactory();
   
    Sections ret = factory.createSections();
    for (int i=0; i<conversionSections.size(); i++) {
      ret.getSection().add(createSection(factory, conversionSections.get(i)));
    }
    return ret;
  }
View Full Code Here

Examples of org.docx4j.wml.ObjectFactory

          return null;
        }
               
        private Object createObject(String name, Object id ) throws Exception {
         
      ObjectFactory factory = Context.getWmlObjectFactory();
      log.debug("Looking for method create" + name);
      Method method = factory.getClass().getDeclaredMethod("create" + name);
      Object newObject = method.invoke(factory);
     
      Method setIdMethod = findSetIdMethod(newObject);
      if (setIdMethod==null) {
        log.error( "Couldn't findSetIdMethod for " + newObject.getClass().getName());       
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.