Package com.buschmais.cdo.api

Examples of com.buschmais.cdo.api.CdoManagerFactory


     * @return The {@link CdoManagerFactory}.
     */
    public static CdoManagerFactory createCdoManagerFactory(String name) {
        ServiceLoader<CdoBootstrapService> serviceLoader = ServiceLoader.load(CdoBootstrapService.class);
        for (CdoBootstrapService cdoBootstrapService : serviceLoader) {
            CdoManagerFactory cdoManagerFactory = cdoBootstrapService.createCdoManagerFactory(name);
            if (cdoManagerFactory != null) {
                return cdoManagerFactory;
            }
        }
        throw new CdoException("Cannot bootstrap CDO implementation.");
View Full Code Here


     * @return The {@link CdoManagerFactory}.
     */
    public static CdoManagerFactory createCdoManagerFactory(CdoUnit cdoUnit) {
        ServiceLoader<CdoBootstrapService> serviceLoader = ServiceLoader.load(CdoBootstrapService.class);
        for (CdoBootstrapService cdoBootstrapService : serviceLoader) {
            CdoManagerFactory cdoManagerFactory = cdoBootstrapService.createCdoManagerFactory(cdoUnit);
            if (cdoManagerFactory != null) {
                return cdoManagerFactory;
            }
        }
        throw new CdoException("Cannot bootstrap CDO implementation.");
View Full Code Here

        }
        if (registeredCdoUnits.contains(cdoUnit.getName())) {
            LOGGER.debug("Update not yet supported {}", pid);
            return;
        }
        CdoManagerFactory cdoManagerFactory = new CdoManagerFactoryImpl<>(cdoUnit);

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

        pidsToServiceRegistrations.put(pid, serviceRegistration);
    }

    @Override
    public void deleted(String pid) {
        CdoManagerFactory cdoManagerFactory = pidsToFactories.remove(pid);
        if (cdoManagerFactory != null) {
            registeredCdoUnits.remove(cdoManagerFactory.getCdoUnit().getName());
            closeCdoManagerFactory(cdoManagerFactory);

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

                }
                for (CdoUnit cdoUnit : cdoUnits) {
                    if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("Found CdoUnit '{}'", cdoUnit.getName());
                    }
                    CdoManagerFactory cdoManagerFactory = new CdoManagerFactoryImpl(cdoUnit);
                    Dictionary<String, Object> p = new Hashtable<>();
                    p.put("name", cdoUnit.getName());
                    bundle.getBundleContext().registerService(CdoManagerFactory.class, cdoManagerFactory, p);
                    cdoManagerFactories.add(cdoManagerFactory);
                    if (LOGGER.isDebugEnabled()) {
View Full Code Here

public class Cdo {

    public static CdoManagerFactory createCdoManagerFactory(String name) {
        ServiceLoader<CdoBootstrapService> serviceLoader = ServiceLoader.load(CdoBootstrapService.class);
        for (CdoBootstrapService cdoBootstrapService : serviceLoader) {
            CdoManagerFactory cdoManagerFactory = cdoBootstrapService.createCdoManagerFactory(name);
            if (cdoManagerFactory != null) {
                return cdoManagerFactory;
            }
        }
        throw new CdoException("Cannot bootstrap CDO implementation.");
View Full Code Here

    }

    public static CdoManagerFactory createCdoManagerFactory(CdoUnit cdoUnit) {
        ServiceLoader<CdoBootstrapService> serviceLoader = ServiceLoader.load(CdoBootstrapService.class);
        for (CdoBootstrapService cdoBootstrapService : serviceLoader) {
            CdoManagerFactory cdoManagerFactory = cdoBootstrapService.createCdoManagerFactory(cdoUnit);
            if (cdoManagerFactory != null) {
                return cdoManagerFactory;
            }
        }
        throw new CdoException("Cannot bootstrap CDO implementation.");
View Full Code Here

TOP

Related Classes of com.buschmais.cdo.api.CdoManagerFactory

Copyright © 2018 www.massapicom. 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.