Examples of QFactory


Examples of org.jpos.q2.QFactory

        super ();
        clazz = DEFAULT_IMPL;
    }
    protected void initService () throws Exception {
        Element e = getPersist ();
        QFactory factory = getServer().getFactory();
        ks = (SecureKeyStore) factory.newInstance (getImpl ());
        factory.setLogger  (ks, e);
        factory.setConfiguration (ks, e);
        NameRegistrar.register (getName (), ks);
    }
View Full Code Here

Examples of org.jpos.q2.QFactory

        return ready;
    }
    private void addListeners ()
        throws ConfigurationException
    {
        QFactory factory = getFactory ();
        Iterator iter = getPersist().getChildren (
            "request-listener"
        ).iterator();
        while (iter.hasNext()) {
            Element l = (Element) iter.next();
            ISORequestListener listener = (ISORequestListener)
                factory.newInstance (l.getAttributeValue ("class"));
            factory.setLogger        (listener, l);
            factory.setConfiguration (listener, l);
            addISORequestListener (listener);
        }
    }
View Full Code Here

Examples of org.jpos.q2.QFactory

    public TaskAdaptor () {
        super ();
    }

    protected void initService () throws Exception {
        QFactory factory = getServer().getFactory();
        Element e = getPersist ();
        task = factory.newInstance (e.getChildTextTrim ("class"));
        factory.setLogger (task, e);
    }
View Full Code Here

Examples of org.jpos.q2.QFactory

        super ();
    }
    protected void startService () throws Exception {
        Object obj = getObject();
        if (obj instanceof Configurable) {
            QFactory factory = getServer().getFactory();
            Element e = getPersist ();
            ((Configurable)obj).setConfiguration (
                factory.getConfiguration (e)
            );
        }
        CardAgentLookup.add ((CardAgent) getObject ());
    }
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.