Examples of ObjectFactory


Examples of org.jvnet.glassfish.comms.clb.admin.ObjectFactory

            Loadbalancer _lb = new Loadbalancer();

            LoadbalancerVisitor lbVstr = new LoadbalancerVisitor(_lb);
            lbr.accept(lbVstr);

            ObjectFactory clbFactory = new ObjectFactory();
            clbFactory.store(_lb, out);
            out.flush();
            if (!ClbAdminEventHelper.isClbDebug())
                deleteClbCfgFiles(fileName);
        } catch (Exception e) {
            throw new IOException(e.getMessage());
View Full Code Here

Examples of org.kapott.hbci.sepa.jaxb.pain_001_001_02.ObjectFactory

        else
        {
            cdtTrxTxInfs.add(createCreditTransferTransactionInformation2(sepaParams, null));
        }

        ObjectFactory of = new ObjectFactory();
        this.marshal(of.createDocument(doc), os, validate);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.jaxb.pain_001_002_02.ObjectFactory

        else
        {
            cdtTrxTxInfs.add(createCreditTransferTransactionInformationSCT(sepaParams, null));
        }

        ObjectFactory of = new ObjectFactory();
        this.marshal(of.createDocument(doc), os, validate);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.jaxb.pain_001_002_03.ObjectFactory

        String batch = SepaUtil.getProperty(sepaParams,"batchbook",null);
        if (batch != null)
            pmtInf.setBtchBookg(batch.equals("1"));

        ObjectFactory of = new ObjectFactory();
        this.marshal(of.createDocument(doc), os, validate);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.jaxb.pain_001_003_03.ObjectFactory

        String batch = SepaUtil.getProperty(sepaParams,"batchbook",null);
        if (batch != null)
            pmtInf.setBtchBookg(batch.equals("1"));

        ObjectFactory of = new ObjectFactory();
        this.marshal(of.createDocument(doc), os, validate);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.jaxb.pain_008_001_01.ObjectFactory

        else
        {
            drctDbtTxInfs.add(createDirectDebitTransactionInformation2(sepaParams, null));
        }

        ObjectFactory of = new ObjectFactory();
        this.marshal(of.createDocument(doc), os, validate);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.jaxb.pain_008_002_01.ObjectFactory

        else
        {
            drctDbtTxInfs.add(createDirectDebitTransactionInformationSDD(sepaParams, null));
        }

        ObjectFactory of = new ObjectFactory();
        this.marshal(of.createDocument(doc), os, validate);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.jaxb.pain_008_002_02.ObjectFactory

        String batch = SepaUtil.getProperty(sepaParams,"batchbook",null);
        if (batch != null)
            pmtInf.setBtchBookg(batch.equals("1"));

        ObjectFactory of = new ObjectFactory();
        this.marshal(of.createDocument(doc), os, validate);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.jaxb.pain_008_003_02.ObjectFactory

        String batch = SepaUtil.getProperty(sepaParams,"batchbook",null);
        if (batch != null)
            pmtInf.setBtchBookg(batch.equals("1"));

        ObjectFactory of = new ObjectFactory();
        this.marshal(of.createDocument(doc), os, validate);
    }
View Full Code Here

Examples of org.kapott.hbci.tools.ObjectFactory

    }
   
    public SyntaxDE createSyntaxDE(String dataType,String path,String value,int minsize,int maxsize)
    {
        SyntaxDE ret=null;
        ObjectFactory factory;
       
        synchronized(this) {
          factory=factories.get(dataType);

          if (factory==null) {
            factory=new ObjectFactory(Integer.parseInt(HBCIUtils.getParam("kernel.objpool.Syntax","1024")));
            factories.put(dataType,factory);
          }
        }
       
        ret=(SyntaxDE)factory.getFreeObject();
        if (ret==null) {
            // laden der klasse, die die syntax des de enthaelt
            Class c;
            try {
                c=Class.forName("org.kapott.hbci.datatypes.Syntax"+dataType,false,this.getClass().getClassLoader());
            } catch (ClassNotFoundException e) {
                throw new NoSuchSyntaxException(dataType,path);
            }

            // holen des constructors fuer diese klasse
            Constructor con;
            try {
                con=c.getConstructor(new Class[]{String.class, int.class, int.class});
            } catch (NoSuchMethodException e) {
                throw new NoSuchConstructorException(dataType);
            }

            /* anlegen einer neuen instanz der syntaxklasse und initialisieren
             mit dem uebergebenen wert */
            try {
                ret=(SyntaxDE)(con.newInstance(new Object[]{value, new Integer(minsize), new Integer(maxsize)}));
            } catch (InstantiationException e) {
            } catch (IllegalAccessException e) {
            } catch (InvocationTargetException e) {
                throw new InitializingException((Exception)e.getCause(),path);
            }
           
            if (ret!=null) {
                factory.addToUsedPool(ret);
            }
        } else {
            try {
                ret.init(value,minsize,maxsize);
                factory.addToUsedPool(ret);
            } catch (RuntimeException e) {
                factory.addToFreePool(ret);
                throw new InitializingException(e,path);
            }
        }
       
        return ret;
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.