Package org.teiid.core.util

Examples of org.teiid.core.util.ReflectionHelper


    }
    return cs;
  }

  public <T> void registerClientService(Class<T> iface, T instance, String loggingContext) {
    this.clientServices.put(iface.getName(), new ClientService(instance, loggingContext, new ReflectionHelper(iface)));
 
View Full Code Here


        boolean requiresContext = false;
        // Defect 20007 - Ignore the invocation method if pushdown is not required.
        if (validateClass && (method.getPushdown() == PushDown.CAN_PUSHDOWN || method.getPushdown() == PushDown.CANNOT_PUSHDOWN)) {
            try {
                Class<?> methodClass = source.getInvocationClass(method.getInvocationClass());
                ReflectionHelper helper = new ReflectionHelper(methodClass);
                try {
                  invocationMethod = helper.findBestMethodWithSignature(method.getInvocationMethod(), inputTypes);
                } catch (NoSuchMethodException e) {
                    inputTypes.add(0, CommandContext.class);
                  invocationMethod = helper.findBestMethodWithSignature(method.getInvocationMethod(), inputTypes);
                  requiresContext = true;
                }
            } catch (ClassNotFoundException e) {
              throw new TeiidRuntimeException(e, "ERR.015.001.0047", QueryPlugin.Util.getString("FunctionTree.no_class", method.getName(), method.getInvocationClass())); //$NON-NLS-1$ //$NON-NLS-2$
            } catch (NoSuchMethodException e) {
View Full Code Here

TOP

Related Classes of org.teiid.core.util.ReflectionHelper

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.