Package com.foundationdb.server.service.servicemanager.configuration

Examples of com.foundationdb.server.service.servicemanager.configuration.ServiceBinding


    }

    // private methods

    private BindingsConfigurationLoader getPluginsConfigurationLoader(Collection<ServiceBinding> bindings) {
        ServiceBinding pluginsFinderBinding = null;
        for (ServiceBinding binding : bindings) {
            if (PluginsFinder.class.getCanonicalName().equals(binding.getInterfaceName())) {
                if (pluginsFinderBinding != null)
                    throw new ServiceStartupException("multiple bindings found for " + PluginsFinder.class);
                pluginsFinderBinding = binding;
            }
        }
        if (pluginsFinderBinding == null)
            return emptyConfigurationLoader;
        String pluginsFinderClassName = pluginsFinderBinding.getImplementingClassName();
        Class<?> pluginsFinderClass;
        try {
            pluginsFinderClass = Class.forName(pluginsFinderClassName);
        }
        catch (ClassNotFoundException e) {
View Full Code Here


            throw new IllegalArgumentException("theInterface must be an interface class: " + theInterface);
        }
        if (theClass.isInterface()) {
            throw new IllegalArgumentException("theClass must not be an interface class: " + theClass);
        }
        ServiceBinding binding = new ServiceBinding(theInterface.getName());
        binding.setImplementingClass(theClass.getName());
        if (required) {
            binding.markDirectlyRequired();
        }
        return binding;
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.service.servicemanager.configuration.ServiceBinding

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.