org.apache.xbean.recipe
Class RecipeHelper

java.lang.Object
  extended by org.apache.xbean.recipe.RecipeHelper

public final class RecipeHelper
extends Object

Version:
$Rev: 6687 $ $Date: 2005-12-28T21:08:56.733437Z $

Nested Class Summary
static class RecipeHelper.RecipeComparator
           
 
Method Summary
static Object convert(Type expectedType, Object value, boolean lazyRefAllowed)
           
static Recipe getCaller()
           
static Type[] getTypeParameters(Class desiredType, Type type)
           
static boolean hasDefaultConstructor(Class type)
           
static boolean isAssignable(Type expectedType, Type actualType)
           
static boolean isAssignableFrom(Class expected, Class actual)
           
static boolean isAssignableFrom(List<? extends Class<?>> expectedTypes, List<? extends Class<?>> actualTypes)
           
static boolean isConvertable(Type type, Object propertyValue)
           
static boolean isInstance(Type t, Object instance)
           
static boolean isSimpleType(Object o)
           
static Class loadClass(String name)
           
static
<K,V> List<Map.Entry<K,V>>
prioritizeProperties(Map<K,V> properties)
           
static Class toClass(Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.