Examples of findMethod()


Examples of org.directwebremoting.extend.Call.findMethod()

                // Get a list of the available matching methods with the coerced
                // parameters that we will use to call it if we choose to use
                // that method.

                // Which method are we using?
                call.findMethod(moduleManager, converterManager, inctx, callNum);
                MethodDeclaration method = call.getMethodDeclaration();
                if (method == null)
                {
                    log.warn("No methods to match " + call.getScriptName() + '.' + call.getMethodName());
                    throw new IllegalArgumentException("Missing method or missing parameter converters");
View Full Code Here

Examples of org.jboss.as.pojo.service.BeanInfo.findMethod()

        if (factoryClass != null) {
            if (factoryMethod == null)
                throw PojoMessages.MESSAGES.nullFactoryMethod();

            BeanInfo beanInfo = getTempBeanInfo(visitor, factoryClass);
            Method m = beanInfo.findMethod(factoryMethod, Configurator.getTypes(parameters));
            return m.getParameterTypes()[vc.getIndex()];
        } else {
            BeanInfo beanInfo = visitor.getBeanInfo();
            if (beanInfo == null)
                throw PojoMessages.MESSAGES.nullBeanInfo();
View Full Code Here

Examples of org.jboss.as.pojo.service.BeanInfo.findMethod()

        if (previous instanceof ValueConfig == false)
            throw PojoMessages.MESSAGES.notValueConfig(previous);

        ValueConfig vc = (ValueConfig) previous;
        BeanInfo beanInfo = visitor.getBeanInfo();
        Method m = beanInfo.findMethod(methodName, Configurator.getTypes(parameters));
        return m.getParameterTypes()[vc.getIndex()];
    }

    public String getMethodName() {
        return methodName;
View Full Code Here

Examples of org.jboss.as.pojo.service.BeanInfo.findMethod()

        if (factoryClass != null) {
            if (factoryMethod == null)
                throw PojoLogger.ROOT_LOGGER.nullFactoryMethod();

            BeanInfo beanInfo = getTempBeanInfo(visitor, factoryClass);
            Method m = beanInfo.findMethod(factoryMethod, Configurator.getTypes(parameters));
            return m.getParameterTypes()[vc.getIndex()];
        } else {
            BeanInfo beanInfo = visitor.getBeanInfo();
            if (beanInfo == null)
                throw PojoLogger.ROOT_LOGGER.nullBeanInfo();
View Full Code Here

Examples of org.jboss.as.pojo.service.BeanInfo.findMethod()

        if (previous instanceof ValueConfig == false)
            throw PojoLogger.ROOT_LOGGER.notValueConfig(previous);

        ValueConfig vc = (ValueConfig) previous;
        BeanInfo beanInfo = visitor.getBeanInfo();
        Method m = beanInfo.findMethod(methodName, Configurator.getTypes(parameters));
        return m.getParameterTypes()[vc.getIndex()];
    }

    public String getMethodName() {
        return methodName;
View Full Code Here

Examples of org.springframework.batch.support.AnnotationMethodResolver.findMethod()

public class AnnotationMethodResolverTests {

  @Test
  public void singleAnnotation() {
    AnnotationMethodResolver resolver = new AnnotationMethodResolver(TestAnnotation.class);
    Method method = resolver.findMethod(SingleAnnotationTestBean.class);
    assertNotNull(method);
  }

  @Test(expected = IllegalArgumentException.class)
  public void multipleAnnotations() {
View Full Code Here

Examples of rocket.generator.rebind.type.Type.findMethod()

  protected void overrideFactoryBeanCreateInstanceFactoryMethod(final Bean bean) {
    Checker.notNull("parameter:bean", bean);

    final Type beanType = bean.getType();
    final String factoryMethodName = bean.getFactoryMethod();
    final Method factoryMethod = beanType.findMethod(factoryMethodName, Collections.<Type>emptyList() );
    if (null == factoryMethod || false == factoryMethod.isStatic() || factoryMethod.getVisibility() != Visibility.PUBLIC) {
      this.throwFactoryMethodNotFound(bean, factoryMethodName);
    }

    this.getGeneratorContext().debug("FactoryBean will create new instance by calling " + factoryMethod);
View Full Code Here

Examples of tool.model.ToolClass.findMethod()

        String classFileName = memento.getString(TAG_CLASS_FILE);
        IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(
                new Path(classFileName));
        if (file != null) {
          ToolClass cls = ToolClass.fetch(file);
          ToolMethod method = cls.findMethod(methodName);
            return new MethodEditorInput(method);
        }
        return null;
  }
  public static void saveState(IMemento memento, MethodEditorInput input) {
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.