Package com.ctp.cdi.query.spi

Examples of com.ctp.cdi.query.spi.DelegateQueryHandler


    @Override
    public Object execute(CdiQueryInvocationContext context) {
        try {
            InvocationContext invocation = context.getInvocation();
            DelegateQueryHandler delegate = selectDelegate(context.getMethod());
            if (delegate != null) {
                return invoke(delegate, context);
            }
            return invocation.proceed();
        } catch (Exception e) {
View Full Code Here


        }
    }
   
    private DelegateQueryHandler selectDelegate(Method method) {
        for (Iterator<DelegateQueryHandler> it = delegates.iterator(); it.hasNext();) {
            DelegateQueryHandler delegate = it.next();
            if (contains(delegate, method)) {
                return delegate;
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of com.ctp.cdi.query.spi.DelegateQueryHandler

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.