Package org.jboss.weld.interceptor.proxy

Examples of org.jboss.weld.interceptor.proxy.InterceptorInvocationContext


        ActionSequence.addAction(getClass().getSimpleName());
    }

    protected void checkConstructor(InvocationContext ctx, Class<?> expectedDeclaringClass) {
        assertTrue(ctx instanceof InterceptorInvocationContext);
        InterceptorInvocationContext weldContext = (InterceptorInvocationContext) ctx;
        Constructor<?> constructor = weldContext.getConstructor();
        assertNotNull(constructor);
        assertEquals(expectedDeclaringClass, constructor.getDeclaringClass());
    }
View Full Code Here


                        target.set(instance);
                        return null;
                    }
                };

                InterceptorInvocationContext invocationCtx = new InterceptorInvocationContext(chain, constructor.getJavaMember(), parameters, data, model.getMemberInterceptorBindings(getConstructor())) {
                    @Override
                    public Object getTarget() {
                        return target.get();
                    }
                };

                // WELD-1742 Associate bean constructor interceptor bindings
                invocationCtx.getContextData().put(InterceptorMethodHandler.INTERCEPTOR_BINDINGS_KEY, model.getMemberInterceptorBindings(getConstructor()));

                try {
                    chain.invokeNextInterceptor(invocationCtx);
                } catch (RuntimeException e) {
                    throw e;
View Full Code Here

TOP

Related Classes of org.jboss.weld.interceptor.proxy.InterceptorInvocationContext

Copyright © 2018 www.massapicom. 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.