public interface InheritanceProvider
| Modifier and Type | Interface and Description |
|---|---|
static interface |
InheritanceProvider.ClassInfo
A wrapper used to store inheritance information about classes.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<InheritanceProvider.ClassInfo> |
provide(String klass)
Gets the class information for the given class name, if available.
|
default Optional<InheritanceProvider.ClassInfo> |
provide(String klass,
Object context)
Gets the class information for the given class name and optional context, if available.
|
Optional<InheritanceProvider.ClassInfo> provide(String klass)
klass - The class nameOptionaldefault Optional<InheritanceProvider.ClassInfo> provide(String klass, Object context)
The 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.
klass - The class namecontext - Additional context related to the class nameOptional