Examples of EZBComponentRegistry


Examples of org.ow2.easybeans.api.components.EZBComponentRegistry

        }

        // Use of smart factory ?
        if (this.enableSmartFactory) {
            // Get the components registry
            EZBComponentRegistry registry = this.embedded.getComponentManager().getComponentRegistry();

            // Get the timer components
            List<EZBSmartComponent> smartComponents = registry.getComponents(EZBSmartComponent.class);

            // Exists ?
            if (smartComponents.isEmpty()) {
                logger.warn("Unable to enable the smart factory for web applications as"
                        + " no SmartEndPoint component has been defined in the Easybeans configuration.");
View Full Code Here

Examples of org.ow2.easybeans.api.components.EZBComponentRegistry

        }

        this.injectors = container.getConfiguration().getInjectors();

        // Get a timer service if a timer component is present.
        EZBComponentRegistry registry = container.getConfiguration().getEZBServer().getComponentManager().getComponentRegistry();
        List<TimerComponent> timerComponents = registry.getComponents(TimerComponent.class);

        // use the first one if there is at least once
        if (timerComponents.size() > 0) {
            TimerComponent timerComponent = timerComponents.get(0);
            if (timerComponents.size() > 1) {
View Full Code Here

Examples of org.ow2.easybeans.api.components.EZBComponentRegistry

            throw new IllegalStateException("The getTimer() method cannot be called within the operation state '"
                    + operationState + "'.");
        }

        // Get the components registry
        EZBComponentRegistry registry = embedded.getComponentManager().getComponentRegistry();

        // Get the timer components
        List<TimerComponent> timerComponents = registry.getComponents(TimerComponent.class);

        // Find the quartz component in this list
        if (timerComponents == null || timerComponents.size() == 0) {
            throw new EJBException("Cannot get the timer object as no timer component have been found on the EasyBeans server");
        }
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.