org.apache.xbean.recipe
Class RecipeHelper
java.lang.Object
org.apache.xbean.recipe.RecipeHelper
public final class RecipeHelper
- extends Object
- Version:
- $Rev: 6687 $ $Date: 2005-12-28T21:08:56.733437Z $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCaller
public static Recipe getCaller()
loadClass
public static Class loadClass(String name)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
hasDefaultConstructor
public static boolean hasDefaultConstructor(Class type)
isSimpleType
public static boolean isSimpleType(Object o)
prioritizeProperties
public static <K,V> List<Map.Entry<K,V>> prioritizeProperties(Map<K,V> properties)
isInstance
public static boolean isInstance(Type t,
Object instance)
isConvertable
public static boolean isConvertable(Type type,
Object propertyValue)
isAssignableFrom
public static boolean isAssignableFrom(Class expected,
Class actual)
convert
public static Object convert(Type expectedType,
Object value,
boolean lazyRefAllowed)
isAssignableFrom
public static boolean isAssignableFrom(List<? extends Class<?>> expectedTypes,
List<? extends Class<?>> actualTypes)
isAssignable
public static boolean isAssignable(Type expectedType,
Type actualType)
toClass
public static Class toClass(Type type)
getTypeParameters
public static Type[] getTypeParameters(Class desiredType,
Type type)
Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.