org.springframework.config.java.util
Class ClassUtils

java.lang.Object
  extended by org.springframework.config.java.util.ClassUtils

public abstract class ClassUtils
extends java.lang.Object

Convenience utility class used for translating common encountered code into one-liners.

Author:
Costin Leau

Field Summary
static java.lang.String CLASS_EXT
          Class extension.
static char DOT
           
static java.lang.String JAVA_CONFIG_PKG
           
static char SLASH
           
 
Constructor Summary
ClassUtils()
           
 
Method Summary
static java.lang.String classNameInternalToLoadable(java.lang.String className)
          Convert the / form to the .
static java.lang.String classNameLoadableToInternal(java.lang.String className)
          Converts .
static boolean hasAnnotation(java.lang.reflect.Method method, java.lang.Class<? extends java.lang.annotation.Annotation> a)
          Check if the given method has the given annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_EXT

public static final java.lang.String CLASS_EXT
Class extension.

See Also:
Constant Field Values

DOT

public static final char DOT
See Also:
Constant Field Values

SLASH

public static final char SLASH
See Also:
Constant Field Values

JAVA_CONFIG_PKG

public static final java.lang.String JAVA_CONFIG_PKG
See Also:
Constant Field Values
Constructor Detail

ClassUtils

public ClassUtils()
Method Detail

classNameInternalToLoadable

public static java.lang.String classNameInternalToLoadable(java.lang.String className)
Convert the / form to the . form

Parameters:
className -
Returns:

classNameLoadableToInternal

public static java.lang.String classNameLoadableToInternal(java.lang.String className)
Converts . form to / form.

Parameters:
className -
Returns:

hasAnnotation

public static boolean hasAnnotation(java.lang.reflect.Method method,
                                    java.lang.Class<? extends java.lang.annotation.Annotation> a)
Check if the given method has the given annotation.

Parameters:
method -
a -
Returns:


Copyright © 2005-2007 Spring Framework. All Rights Reserved.