Examples of XOManagerFactory


Examples of com.buschmais.xo.api.XOManagerFactory

     * @return The {@link com.buschmais.xo.api.XOManagerFactory}.
     */
    public static XOManagerFactory createXOManagerFactory(String name) {
        ServiceLoader<XOBootstrapService> serviceLoader = ServiceLoader.load(XOBootstrapService.class);
        for (XOBootstrapService XOBootstrapService : serviceLoader) {
            XOManagerFactory xoManagerFactory = XOBootstrapService.createXOManagerFactory(name);
            if (xoManagerFactory != null) {
                return xoManagerFactory;
            }
        }
        throw new XOException("Cannot bootstrap XO implementation.");
View Full Code Here

Examples of com.buschmais.xo.api.XOManagerFactory

     * @return The {@link com.buschmais.xo.api.XOManagerFactory}.
     */
    public static XOManagerFactory createXOManagerFactory(XOUnit xoUnit) {
        ServiceLoader<XOBootstrapService> serviceLoader = ServiceLoader.load(XOBootstrapService.class);
        for (XOBootstrapService XOBootstrapService : serviceLoader) {
            XOManagerFactory xoManagerFactory = XOBootstrapService.createXOManagerFactory(xoUnit);
            if (xoManagerFactory != null) {
                return xoManagerFactory;
            }
        }
        throw new XOException("Cannot bootstrap XO implementation.");
View Full Code Here

Examples of com.buschmais.xo.api.XOManagerFactory

                }
                for (XOUnit XOUnit : xoUnits) {
                    if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("Found XOUnit '{}'", XOUnit.getName());
                    }
                    XOManagerFactory xoManagerFactory = new XOManagerFactoryImpl(XOUnit);
                    Dictionary<String, Object> p = new Hashtable<>();
                    p.put("name", XOUnit.getName());
                    bundle.getBundleContext().registerService(XOManagerFactory.class, xoManagerFactory, p);
                    xoManagerFactories.add(xoManagerFactory);
                    if (LOGGER.isDebugEnabled()) {
View Full Code Here

Examples of com.buschmais.xo.api.XOManagerFactory

        }
        if (registeredXOUnits.contains(xoUnit.getName())) {
            LOGGER.debug("Update not yet supported {}", pid);
            return;
        }
        XOManagerFactory xoManagerFactory = new XOManagerFactoryImpl(xoUnit);

        Dictionary<String, Object> p = new Hashtable<>();
        p.put("name", xoUnit.getName());
        ServiceRegistration<XOManagerFactory> serviceRegistration = componentContext.getBundleContext().registerService(XOManagerFactory.class, xoManagerFactory, p);
View Full Code Here

Examples of com.buschmais.xo.api.XOManagerFactory

        pidsToServiceRegistrations.put(pid, serviceRegistration);
    }

    @Override
    public void deleted(String pid) {
        XOManagerFactory XOManagerFactory = pidsToFactories.remove(pid);
        if (XOManagerFactory != null) {
            registeredXOUnits.remove(XOManagerFactory.getXOUnit().getName());
            closeXOManagerFactory(XOManagerFactory);

        }
        ServiceRegistration<XOManagerFactory> registration = pidsToServiceRegistrations.remove(pid);
        if (registration != null) {
View Full Code Here

Examples of com.buschmais.xo.api.XOManagerFactory

                }
                for (XOUnit xoUnit : xoUnits) {
                    if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("Found XOUnit '{}'", xoUnit.getName());
                    }
                    XOManagerFactory xoManagerFactory = new XOManagerFactoryImpl(xoUnit);
                    Dictionary<String, Object> p = new Hashtable<>();
                    p.put("name", xoUnit.getName());
                    bundle.getBundleContext().registerService(XOManagerFactory.class, xoManagerFactory, p);
                    xoManagerFactories.add(xoManagerFactory);
                    if (LOGGER.isDebugEnabled()) {
View Full Code Here

Examples of com.buschmais.xo.api.XOManagerFactory

     * @return The {@link com.buschmais.xo.api.XOManagerFactory}.
     */
    public static XOManagerFactory createXOManagerFactory(String name) {
        ServiceLoader<XOBootstrapService> serviceLoader = ServiceLoader.load(XOBootstrapService.class);
        for (XOBootstrapService xoBootstrapService : serviceLoader) {
            XOManagerFactory xoManagerFactory = xoBootstrapService.createXOManagerFactory(name);
            if (xoManagerFactory != null) {
                return xoManagerFactory;
            }
        }
        throw new XOException("Cannot bootstrap XO implementation.");
View Full Code Here

Examples of com.buschmais.xo.api.XOManagerFactory

     * @return The {@link com.buschmais.xo.api.XOManagerFactory}.
     */
    public static XOManagerFactory createXOManagerFactory(XOUnit xoUnit) {
        ServiceLoader<XOBootstrapService> serviceLoader = ServiceLoader.load(XOBootstrapService.class);
        for (XOBootstrapService xoBootstrapService : serviceLoader) {
            XOManagerFactory xoManagerFactory = xoBootstrapService.createXOManagerFactory(xoUnit);
            if (xoManagerFactory != null) {
                return xoManagerFactory;
            }
        }
        throw new XOException("Cannot bootstrap XO implementation.");
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.