org.hibernate.annotations.common.reflection.java.generics
Class TypeEnvironmentFactory
java.lang.Object
org.hibernate.annotations.common.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(Type context)
getEnvironment
public TypeEnvironment getEnvironment(Type t,
TypeEnvironment context)
toApproximatingEnvironment
public TypeEnvironment toApproximatingEnvironment(TypeEnvironment context)
Copyright © 2005-2012 JBoss by Red Hat. All Rights Reserved.