org.springframework.beans.factory.config
Class ServiceLocatorFactoryBean.ServiceLocatorInvocationHandler

java.lang.Object
  extended by org.springframework.beans.factory.config.ServiceLocatorFactoryBean.ServiceLocatorInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Enclosing class:
ServiceLocatorFactoryBean

private class ServiceLocatorFactoryBean.ServiceLocatorInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Invocation handler that delegates service locator calls to the bean factory.


Constructor Summary
private ServiceLocatorFactoryBean.ServiceLocatorInvocationHandler()
           
 
Method Summary
private  java.lang.Class getServiceLocatorMethodReturnType(java.lang.reflect.Method method)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
private  java.lang.Object invokeServiceLocatorMethod(java.lang.reflect.Method method, java.lang.Object[] args)
           
private  java.lang.String tryGetBeanName(java.lang.Object[] args)
          Check whether a service id was passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceLocatorFactoryBean.ServiceLocatorInvocationHandler

private ServiceLocatorFactoryBean.ServiceLocatorInvocationHandler()
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

invokeServiceLocatorMethod

private java.lang.Object invokeServiceLocatorMethod(java.lang.reflect.Method method,
                                                    java.lang.Object[] args)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

tryGetBeanName

private java.lang.String tryGetBeanName(java.lang.Object[] args)
Check whether a service id was passed in.


getServiceLocatorMethodReturnType

private java.lang.Class getServiceLocatorMethodReturnType(java.lang.reflect.Method method)
                                                   throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException