jfun.yan.spring
Class SpringUtils

java.lang.Object
  extended by jfun.yan.spring.SpringUtils

public class SpringUtils
extends java.lang.Object

Some common spring related utility functions.

Author:
Ben Yu Nov 20, 2005 10:28:50 PM

Constructor Summary
SpringUtils()
           
 
Method Summary
static PropertyBinder getAutowireWithoutAwareMarkerInterfaces(PropertyBinder binder)
          Decorate an autowiring mode by filtering out Spring XXXAware marker interfaces.
static TypeFilteredPropertyPredicate getSpringAwareMarkerInterfaceFilter()
          Get the PropertyPredicate object that filters all Spring XXXAware marker interfaces we know so far.
static boolean isSpringInfrastructureClass(java.lang.Class type)
          Is this type part of the Spring infrastructure that needs special care?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringUtils

public SpringUtils()
Method Detail

isSpringInfrastructureClass

public static boolean isSpringInfrastructureClass(java.lang.Class type)
Is this type part of the Spring infrastructure that needs special care?

Parameters:
type - the type.
Returns:
true if this is a special Spring infrastructure type (one of those marker interfaces.)

getSpringAwareMarkerInterfaceFilter

public static TypeFilteredPropertyPredicate getSpringAwareMarkerInterfaceFilter()
Get the PropertyPredicate object that filters all Spring XXXAware marker interfaces we know so far.


getAutowireWithoutAwareMarkerInterfaces

public static PropertyBinder getAutowireWithoutAwareMarkerInterfaces(PropertyBinder binder)
Decorate an autowiring mode by filtering out Spring XXXAware marker interfaces.

Parameters:
binder - the autowiring mode.
Returns:
the new autowiring mode.