public class ReflectionInheritanceProvider extends Object implements InheritanceProvider
InheritanceProvider based on Java's
reflection API.InheritanceProvider.ClassInfo| Constructor and Description |
|---|
ReflectionInheritanceProvider(ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
InheritanceProvider.ClassInfo |
provide(Class<?> clazz) |
Optional<InheritanceProvider.ClassInfo> |
provide(String klass)
Gets the class information for the given class name, if available.
|
Optional<InheritanceProvider.ClassInfo> |
provide(String klass,
Object context)
Gets the class information for the given class name and optional context, if available.
|
public ReflectionInheritanceProvider(ClassLoader classLoader)
public Optional<InheritanceProvider.ClassInfo> provide(String klass)
InheritanceProviderprovide in interface InheritanceProviderklass - The class nameOptionalpublic Optional<InheritanceProvider.ClassInfo> provide(String klass, Object context)
InheritanceProviderThe provided context may be used by the InheritanceProvider to avoid
looking up the class by its name. The accepted values are specific to each
InheritanceProvider; unknown context should be ignored.
provide in interface InheritanceProviderklass - The class namecontext - Additional context related to the class nameOptionalpublic InheritanceProvider.ClassInfo provide(Class<?> clazz)