Examples of processInvocation()


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()

        instance.prepareInterceptorContext(context);
        context.setParameters(args);
        context.setMethod(method);
        // setup the public context data
        context.setContextData(new HashMap<String, Object>());
        return interceptor.processInvocation(context);
    }
}
View Full Code Here

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

                TimerInvocationMarker marker = context.getPrivateData(TimerInvocationMarker.class);
                if (marker == null) {
                    return aroundInvoke.processInvocation(context);
                } else {
                    return aroundTimeout.processInvocation(context);
                }
            }
        };

    }
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.jboss.invocation.Interceptor.processInvocation()

                        final InterceptorContext context = new InterceptorContext();
                        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 " + interceptorClass, t);
                    }
                }
            } finally {
View Full Code Here

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

                            (ComponentInstance)((ComponentInstance) instance).getInstance() :
                            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 {
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);
                    }
                }
View Full Code Here

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

        if (instance == null) {
            throw new CannotProceedException("No instance is associated with this component class");
        }
        context.setTarget(instance.getInstance());
        final Interceptor interceptor = instance.getInterceptor(context.getMethod());
        return interceptor.processInvocation(context);
    }
}
View Full Code Here

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

        return new Interceptor() {
            @Override
            public Object processInvocation(final InterceptorContext context) throws Exception {
                final InvocationType marker = context.getPrivateData(InvocationType.class);
                if (marker == InvocationType.TIMER) {
                    return aroundTimeout.processInvocation(context);
                } else {
                    return aroundInvoke.processInvocation(context);
                }
            }
        };
View Full Code Here

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
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.