Examples of processInvocation()


Examples of org.jboss.invocation.Interceptor.processInvocation()

                params[0] = timer;
            } else {
                params = EMPTY_OBJECT_ARRAY;
            }
            context.setParameters(params);
            interceptor.processInvocation(context);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.jboss.invocation.Interceptor.processInvocation()

        @Override
        public Object invoke(InterceptorContext interceptorContext) throws Exception {
            final Method method = interceptorContext.getMethod();
            final Interceptor interceptor = viewInterceptors.get(method);
            return interceptor.processInvocation(interceptorContext);
        }

        public Component getComponent() {
            return component;
        }
View Full Code Here

Examples of org.jboss.invocation.Interceptor.processInvocation()

                public void release() {
                    try {
                        InterceptorContext interceptorContext = new InterceptorContext();
                        interceptorContext.putPrivateData(ComponentView.class, componentView);
                        interceptorContext.putPrivateData(Component.class, component);
                        clientPreDestroyInterceptor.processInvocation(interceptorContext);
                    } catch (Exception e) {
                        ROOT_LOGGER.preDestroyInterceptorFailure(e, component.getComponentClass());
                    }
                }
View Full Code Here

Examples of org.jboss.invocation.Interceptor.processInvocation()

                    InterceptorContext interceptorContext = new InterceptorContext();
                    interceptorContext.putPrivateData(ComponentView.class, View.this);
                    interceptorContext.putPrivateData(ComponentViewInstance.class, this);
                    interceptorContext.putPrivateData(Component.class, component);
                    try {
                        postConstructInterceptor.processInvocation(interceptorContext);
                    } catch (Exception e) {
                        InstantiationException exception = new InstantiationException("Post-construct lifecycle failed");
                        exception.initCause(e);
                        throw exception;
                    }
View Full Code Here

Examples of org.jboss.invocation.Interceptor.processInvocation()

                final InterceptorContext context = new InterceptorContext();
                //as we use LifecycleInterceptorFactory we do not need to set the method
                context.setTarget(instance);
                context.setContextData(new HashMap<String, Object>());
                context.setParameters(EMPTY_OBJECT_ARRAY);
                interceptor.processInvocation(context);
            } catch (Throwable t) {
                throw new RuntimeException("Failed to invoke post construct method for class " + getComponentClass(), t);
            }
        } finally {
            setContextClassLoader(contextCl);
View Full Code Here

Examples of org.jboss.invocation.Interceptor.processInvocation()

            context.putPrivateData(EntityBeanComponent.PRIMARY_KEY_CONTEXT_KEY, timer.getPrimaryKey());
        }
        context.putPrivateData(Component.class, ejbComponent.getValue());
        context.putPrivateData(MethodIntf.class, MethodIntf.TIMER);
        context.putPrivateData(TimerInvocationMarker.class, TimerInvocationMarker.INSTANCE);
        interceptor.processInvocation(context);
    }

    @Override
    public String getTimedObjectId() {
        return deploymentString + "." + ejbComponent.getValue().getComponentName();
View Full Code Here

Examples of org.jboss.invocation.Interceptor.processInvocation()

            context.putPrivateData(EntityBeanComponent.PRIMARY_KEY_CONTEXT_KEY, timer.getPrimaryKey());
        }
        context.putPrivateData(Component.class, ejbComponent.getValue());
        context.putPrivateData(MethodIntf.class, MethodIntf.TIMER);
        context.putPrivateData(InvocationType.class, InvocationType.TIMER);
        interceptor.processInvocation(context);
    }

    @Override
    public String getTimedObjectId() {
        return deploymentString + "." + ejbComponent.getValue().getComponentName();
View Full Code Here

Examples of org.voltdb.dtxn.InitiatorStats.InvocationInfo.processInvocation()

        InvocationInfo info = procInfoMap.get(procedureName);
        if(info == null){
            info = new InvocationInfo(connectionHostname);
            procInfoMap.put(procedureName, info);
        }
        info.processInvocation((int)TimeUnit.NANOSECONDS.toMillis(deltaNanos), status);
        m_latencyInfo.recordValue(Math.max(1, Math.min(TimeUnit.NANOSECONDS.toMicros(deltaNanos), m_latencyInfo.getHighestTrackableValue())));
        if (needToInsert) {
            m_connectionStates.put(connectionId, procInfoMap);
        }
    }
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.