Examples of ObjectFactory


Examples of com.opensymphony.xwork2.ObjectFactory

  public void test21() {
    ActionBuilder actionNameBuilder = new DefaultActionBuilder();
    ProfileService profileService = new ProfileServiceImpl();
    actionNameBuilder.setProfileService(profileService);

    ObjectFactory of = new ObjectFactory();
    final DummyContainer mockContainer = new DummyContainer();
    Configuration configuration = new DefaultConfiguration() {
      @Override
      public Container getContainer() {
        return mockContainer;
View Full Code Here

Examples of com.petrituononen.customerdb.jaxb.ObjectFactory

  private Customers customers = null;
  private static ObjectFactory factory = null;
 
  public CustomerListManager() {
    try {
      factory = new ObjectFactory();
      jaxbContext = JAXBContext.newInstance("com.petrituononen.customerdb.jaxb");
      unmarshaller = jaxbContext.createUnmarshaller();
      marshaller = jaxbContext.createMarshaller();
    } catch (JAXBException e) {
      e.printStackTrace();
View Full Code Here

Examples of com.sun.ejb.containers.util.pool.ObjectFactory

        }

        // Create a non-blocking pool of message bean instances.
        // The protocol manager implementation enforces a limit
        // on message bean resources independent of the pool.
        ObjectFactory objFactory = new MessageBeanContextFactory();
        messageBeanPool_ = new NonBlockingPool
            (appEJBName_,
             objFactory,
             beanPoolDesc_.getSteadyPoolSize(),
             beanPoolDesc_.getPoolResizeQuantity(),
View Full Code Here

Examples of com.sun.enterprise.admin.servermgmt.xml.domaininfo.ObjectFactory

                _logger.log(Level.INFO, _strings.get("directoryCreationError", infoDir.getAbsolutePath()));
                return;
            }
            File domainInfoXML = new File(infoDir, DomainConstants.DOMAIN_INFO_XML);
            outputStream = new FileOutputStream(domainInfoXML);
            ObjectFactory objFactory = new ObjectFactory();
            DomainInfo domainInfo = objFactory.createDomainInfo();
            String javaHome = System.getenv(JAVA_HOME);
            if (javaHome == null || javaHome.isEmpty()) {
                javaHome = System.getProperty("java.home");
            }
            domainInfo.setJavahome(javaHome);
            domainInfo.setMwhome(System.getProperty(SystemPropertyConstants.PRODUCT_ROOT_PROPERTY));
            TemplateRef templateRef = new TemplateRef();
            templateRef.setName(templateInfo.getName());
            templateRef.setVersion(templateInfo.getVersion());
            templateRef.setLocation(domainTemplate.getLocation());
            domainInfo.setDomainTemplateRef(templateRef);

            JAXBContext context = JAXBContext.newInstance(ObjectFactory.class.getPackage().getName());
            Marshaller marshaller = context.createMarshaller();
            marshaller.setProperty(javax.xml.bind.Marshaller.JAXB_ENCODING, "UTF-8");
            marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
            marshaller.marshal(objFactory.createDomainInfo(domainInfo), outputStream);
        } catch (Exception e) {
            _logger.log(Level.WARNING, _strings.get("directoryCreationError", DomainConstants.DOMAIN_INFO_XML), e);
        } finally {
            if (outputStream != null) {
                try {
View Full Code Here

Examples of com.sun.xml.security.core.dsig.ObjectFactory

    }
   
    public XMLStreamReader readHeader() throws XMLStreamException {
        XMLStreamBufferResult xbr = new XMLStreamBufferResult();
        JAXBElement<com.sun.xml.ws.security.opt.crypto.dsig.keyinfo.X509Data>
                x509DataElem = new ObjectFactory().createX509Data(this);
        try{
            getMarshaller().marshal(x509DataElem, xbr);
           
        } catch(JAXBException je){
            throw new XMLStreamException(je);
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.impl.bindings.ObjectFactory

    }
   
    public final void setIdentifier(final URI identifier) {
        this.identifier = identifier;
        final JAXBElement<String> iElement =
                (new ObjectFactory()).createIdentifier(identifier.toString());
        getAny().add(iElement);
        if (log.isLoggable(Level.FINE)) {
            log.log(Level.FINE,
                    LogStringsMessages.WSSC_1004_SECCTX_TOKEN_ID_VALUE(identifier.toString()));
        }
View Full Code Here

Examples of com.sun.xml.ws.security.secconv.impl.wssx.bindings.ObjectFactory

    }
   
    public void setIdentifier(URI identifier) {
        this.identifier = identifier;
        JAXBElement<String> iElement =
                  (new ObjectFactory()).createIdentifier(identifier.toString());
        getAny().add(iElement);
    }
View Full Code Here

Examples of com.sun.xml.ws.security.secext10.ObjectFactory

     * @throws javax.xml.stream.XMLStreamException
     */
    public XMLStreamReader readHeader() throws XMLStreamException {
        XMLStreamBufferResult xbr = new XMLStreamBufferResult();
        JAXBElement<BinarySecurityTokenType> bstElem =
                new ObjectFactory().createBinarySecurityToken(bst);
        try{
            getMarshaller().marshal(bstElem, xbr);
        }catch(JAXBException je){
            //log here
            throw new XMLStreamException(je);
View Full Code Here

Examples of com.sun.xml.ws.security.trust.impl.bindings.ObjectFactory

   
    public final void setTokenType(final URI tokenType) {
        if (tokenType != null) {
            this.tokenType = tokenType;
            final JAXBElement<String> ttElement =
                    (new ObjectFactory()).createTokenType(tokenType.toString());
            getAny().add(ttElement);
        }
    }
View Full Code Here

Examples of com.sun.xml.ws.security.trust.impl.wssx.bindings.ObjectFactory

     */
    public void setBinarySecret(BinarySecret binarySecret) {
        if (binarySecret != null) {
            this.binarySecret = binarySecret;
            JAXBElement<BinarySecretType> bsElement =
                    (new ObjectFactory()).createBinarySecret((BinarySecretType)binarySecret);
            getAny().add(bsElement);
        }
    }
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.