Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`TypeEnvironmentFactory()`

Method Summary
`TypeEnvironment` | `getEnvironment(Class context)`
`TypeEnvironment` | `getEnvironment(ParameterizedType context)`
`TypeEnvironment` | `toApproximatingEnvironment(TypeEnvironment context)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TypeEnvironmentFactory

    public TypeEnvironmentFactory()

Method Detail

### 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD