Examples of CdoManagerFactory


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

Examples of com.buschmais.cdo.api.CdoManagerFactory

     * @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

Examples of com.buschmais.cdo.api.CdoManagerFactory

        }
        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

Examples of com.buschmais.cdo.api.CdoManagerFactory

        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

Examples of com.buschmais.cdo.api.CdoManagerFactory

                }
                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

Examples of com.buschmais.cdo.api.CdoManagerFactory

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

Examples of com.buschmais.cdo.api.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
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.