Package org.rioproject.impl.container

Examples of org.rioproject.impl.container.ServiceBeanLoaderResult


        /* Get the SLA ThresholdEvent wired up */
        EventHandler slaThresholdEventHandler = null;
        instance = container.activate(sElem, opMgr, null);
        ServiceBeanDelegateImpl delegate = (ServiceBeanDelegateImpl) container.getServiceBeanDelegate(instance.getServiceBeanID());
        ServiceBeanLoaderResult result = delegate.getLoadedServiceResult();
        if(result.getImpl() instanceof ServiceBeanAdapter) {
            slaThresholdEventHandler = ((ServiceBeanAdapter)result.getImpl()).getSLAEventHandler();
        } else {
            if(result.getBeanAdapter()!=null) {
                slaThresholdEventHandler = result.getBeanAdapter().getSLAEventHandler();
            } else {
                String className = result.getImpl()==null?"<NO IMPLEMENTATION>":result.getImpl().getClass().getName();
                logger.warn("SLAThresholdEvent notifications from this forked service are not enabled, service class does not provide support for Rio event registration {}.",
                            className);
            }
        }
        if(slaThresholdEventHandler!=null) {
View Full Code Here

TOP

Related Classes of org.rioproject.impl.container.ServiceBeanLoaderResult

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.