Examples of EZBContainerCallbackInfo


Examples of org.ow2.easybeans.api.EZBContainerCallbackInfo

            Thread.currentThread().setContextClassLoader(old);
        }

        // Send notification to callbacks
        if (getCallbacksLifeCycle().size() > 0) {
            EZBContainerCallbackInfo info = getContainer3CallbackInfo();
            for (EZBContainerLifeCycleCallback callback : getCallbacksLifeCycle()) {
                try {
                    callback.start(info);
                } catch (Throwable t) {
                    // Protection from malicious code
View Full Code Here

Examples of org.ow2.easybeans.api.EZBContainerCallbackInfo

        for (EZBRef reference : this.bindingReferences) {

            // Invoke callbacks
            List<EZBContainerLifeCycleCallback>  lifeCycleCallbacks = getCallbacksLifeCycle();
            if (!lifeCycleCallbacks.isEmpty()) {
                EZBContainerCallbackInfo info = getContainer3CallbackInfo();
                for (EZBContainerLifeCycleCallback lifeCycleCallback : lifeCycleCallbacks) {
                    try {
                        lifeCycleCallback.beforeBind(info, reference);
                    } catch (LifeCycleCallbackException e) {
                        throw new EZBContainerException("Cannot invoke the callback before binding.", e);
View Full Code Here

Examples of org.ow2.easybeans.api.EZBContainerCallbackInfo

        }


        // Send notification to callbacks
        if (getCallbacksLifeCycle().size() > 0) {
            EZBContainerCallbackInfo info = getContainer3CallbackInfo();
            for (EZBContainerLifeCycleCallback callback : getCallbacksLifeCycle()) {
                try {
                    callback.stop(info);
                } catch (Throwable t) {
                    // Protection from malicious code
View Full Code Here

Examples of org.ow2.easybeans.api.EZBContainerCallbackInfo

     * Gets information on the container that can be given to container
     * callbacks.
     * @return information on the managed container.
     */
    protected EZBContainerCallbackInfo getContainer3CallbackInfo() {
        EZBContainerCallbackInfo info = new EZBContainerCallbackInfo();
        info.setArchive(getArchive());
        info.setFactories(this.factories);
        info.setContainer(this);
        return info;
    }
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.