Package org.rioproject.deploy

Examples of org.rioproject.deploy.ServiceStatementManager


     * @param config The Configuration object
     *
     * @return A ServiceStatementManager based on the environment
     */
    static ServiceStatementManager getServiceStatementManager(Configuration config) {
        ServiceStatementManager defaultServiceStatementManager = new TransientServiceStatementManager(config);
        ServiceStatementManager serviceStatementManager;
        try {
            serviceStatementManager = (ServiceStatementManager)config.getEntry(CybernodeImpl.getConfigComponent(),
                                                                               "serviceStatementManager",
                                                                               ServiceStatementManager.class,
                                                                               defaultServiceStatementManager,
                                                                               config);
        } catch(ConfigurationException e) {
            logger.warn("Exception getting ServiceStatementManager", e);
            serviceStatementManager = defaultServiceStatementManager;
        }

        logger.debug("Using ServiceStatementManager: {}", serviceStatementManager.getClass().getName());
        return(serviceStatementManager);
    }
View Full Code Here

TOP

Related Classes of org.rioproject.deploy.ServiceStatementManager

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.