nl.beesting.beangenerator.locators
Class MethodClassLocator

java.lang.Object
  extended by nl.beesting.beangenerator.locators.MethodClassLocator
All Implemented Interfaces:
ClassLocator

public class MethodClassLocator
extends java.lang.Object
implements ClassLocator

This class locator tries to find a classes by method name. It will parse the name of a given method and try to find a class that that matches it. For example is the method is named findCatsByIds it will try to load a class named Cat. Finding the classes is the work of the AbstractClassPathResolver


Constructor Summary
MethodClassLocator()
           
 
Method Summary
 java.lang.Class<?> findClass(org.aopalliance.intercept.MethodInvocation invocation)
           
 void setClassResolverDelegate(AbstractClassPathResolver classResolverDelegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodClassLocator

public MethodClassLocator()
Method Detail

findClass

public java.lang.Class<?> findClass(org.aopalliance.intercept.MethodInvocation invocation)
Specified by:
findClass in interface ClassLocator

setClassResolverDelegate

public void setClassResolverDelegate(AbstractClassPathResolver classResolverDelegate)
Parameters:
classResolverDelegate - the classResolverDelegate to set


Copyright 2008. All Rights Reserved.