org.hibernate.reflection.java.generics
Class TypeEnvironmentFactory
java.lang.Object
org.hibernate.reflection.java.generics.TypeEnvironmentFactory
public class TypeEnvironmentFactory
- extends Object
Returns the type context for a given Class
or ParameterizedType
.
Does not support bindings involving inner classes, nor upper/lower bounds.
- Author:
- Davide Marchignoli, Paolo Perrotta
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeEnvironmentFactory
public TypeEnvironmentFactory()
getEnvironment
public TypeEnvironment getEnvironment(Class context)
- Returns:
- Returns a type environment suitable for resolving types occurring
in subclasses of the context class.
getEnvironment
public TypeEnvironment getEnvironment(ParameterizedType context)
toApproximatingEnvironment
public TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)