Examples of preInvoke()


Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

                if ( componentInvocation == null ) {
                    componentInvocation = createComponentInvocation( componentId,
                                                                     appName,
                                                                     moduleName);
                    try {
                        invocationManager.preInvoke(componentInvocation);
                    } catch ( Exception preInvokeException ) {
                        lookupsWillWork = false;
                    }
                }
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

        // (see IT 11168)
        InvocationManager invocationMgr =
            webContainer.getInvocationManager();
        WebComponentInvocation inv = new WebComponentInvocation(webModule);
        try {
            invocationMgr.preInvoke(inv);
            JCDIService jcdiService = defaultServices.getService(JCDIService.class);
            // JCDIService can be absent if weld integration is missing in the runtime, so check for null is needed.
            if (jcdiService != null && jcdiService.isCurrentModuleJCDIEnabled()) {
                jcdiService.setELResolver(servletContext);
            }
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

            JMSContextEntry contextEntry = entry.getValue();
            String ipId = contextEntry.getInjectionPointId();
            JMSContext context = contextEntry.getCtx();
            if (context != null) {
                ComponentInvocation inv = contextEntry.getComponentInvocation();
                if (inv != null && currentInv != inv) invMgr.preInvoke(inv);
                try {
                    context.close();
                    if (logger.isLoggable(Level.FINE)) {
                        logger.log(Level.FINE, localStrings.getLocalString("JMSContext.impl.close",
                                               "Closed JMSContext instance associated with id {0}: {1}.",
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

        // (see IT 11168)
        InvocationManager invocationMgr =
            webContainer.getInvocationManager();
        WebComponentInvocation inv = new WebComponentInvocation(webModule);
        try {
            invocationMgr.preInvoke(inv);
            JCDIService jcdiService = defaultHabitat.getByContract(JCDIService.class);
            // JCDIService can be absent if weld integration is missing in the runtime, so check for null is needed.
            if (jcdiService != null && jcdiService.isCurrentModuleJCDIEnabled()) {
                jcdiService.setELResolver(servletContext);
            }
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

    }

    @Override
    protected void beforeHandle() {
        final InvocationManager invocationMgr = V3Module.getInvocationManager();
        invocationMgr.preInvoke(invocation);
    }

    @Override
    protected void postHandle() {
        final InvocationManager invocationMgr = V3Module.getInvocationManager();
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

        public void run() {
            ClassLoader previousClassLoader = null;
            InvocationManager invocationManager = EjbContainerUtilImpl.getInstance().getInvocationManager();
            try {
                previousClassLoader = Utility.setContextClassLoader(clsLoader);
                invocationManager.preInvoke(componentInvocation);
                // Cleanup the message bean client resources.
                mdbClient.close();
                _logger
                        .log(Level.FINE,
                                "[MDBContainer] ASync thread done with mdbClient.close()");
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

        // (see IT 11168)
        InvocationManager invocationMgr =
            webContainer.getInvocationManager();
        WebComponentInvocation inv = new WebComponentInvocation(webModule);
        try {
            invocationMgr.preInvoke(inv);
            JCDIService jcdiService = defaultServices.getService(JCDIService.class);
            // JCDIService can be absent if weld integration is missing in the runtime, so check for null is needed.
            if (jcdiService != null && jcdiService.isCurrentModuleJCDIEnabled()) {
                jcdiService.setELResolver(servletContext);
            }
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

            JMSContextEntry contextEntry = entry.getValue();
            String ipId = contextEntry.getInjectionPointId();
            JMSContext context = contextEntry.getCtx();
            if (context != null) {
                ComponentInvocation inv = contextEntry.getComponentInvocation();
                if (inv != null && currentInv != inv) invMgr.preInvoke(inv);
                try {
                    context.close();
                    logger.log(Level.FINE, localStrings.getLocalString("JMSContext.impl.close",
                                           "Closed JMSContext instance associated with id {0}: {1}.",
                                           ipId, context.toString()));
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationManager.preInvoke()

        // (see IT 11168)
        InvocationManager invocationMgr =
            webContainer.getInvocationManager();
        WebComponentInvocation inv = new WebComponentInvocation(webModule);
        try {
            invocationMgr.preInvoke(inv);
            JCDIService jcdiService = defaultServices.getService(JCDIService.class);
            // JCDIService can be absent if weld integration is missing in the runtime, so check for null is needed.
            if (jcdiService != null && jcdiService.isCurrentModuleJCDIEnabled()) {
                jcdiService.setELResolver(servletContext);
            }
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.