public interface ModuleResource
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Option<Type> |
forClass(Class<?> associatedClass)
Find reference using the given class
|
io.vavr.control.Option<Type> |
forName(CharSequence typeName)
Find reference using the given name
|
default Type |
requireType(Class<?> associatedClass)
Get type associated with the given class.
|
default Type |
requireType(String name)
Get type with the given name.
|
default Type requireType(Class<?> associatedClass) throws PandaRuntimeException
associatedClass - the associated class to search forPandaRuntimeException - if type does not existdefault Type requireType(String name) throws PandaRuntimeException
name - the name to search forPandaRuntimeException - if type does not existio.vavr.control.Option<Type> forClass(Class<?> associatedClass)
associatedClass - the class associated with type to search forio.vavr.control.Option<Type> forName(CharSequence typeName)
typeName - the name to search forCopyright © 2020. All rights reserved.