Package org.jboss.invocation

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


            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

            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

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.