public interface IObjectManager
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
all(Class<T> clazz)
Lookup for a object of a given type, with the given key.
|
void |
bind(AbstractPluginObject input)
Bind a object plugin to the manager.
|
void |
clear()
Clear all object mappings.
|
<T> T |
get(Class<T> clazz,
IPredicate<T> filter)
Lookup for a object of a given type, with the given filter.
|
<T> T |
get(Class<T> clazz,
String key)
Lookup for a object of a given type, with the given key.
|
Map<Class<?>,AbstractPluginObject> |
getEntities()
The mapping of all entities.
|
boolean |
isBound(Class<?> clazz)
Check if a given class is bound to a AbstractPluginObject.
|
<T> List<T> |
select(Class<T> clazz,
IPredicate<T> filter)
Lookup for a object of a given type, filtered by a predicate.
|
boolean isBound(Class<?> clazz)
clazz - The object type.void bind(AbstractPluginObject input)
input - The object plugin.<T> List<T> all(Class<T> clazz) throws PluginException
clazz - The object type.PluginException - On lookup errors.<T> List<T> select(Class<T> clazz, IPredicate<T> filter) throws PluginException
clazz - The object type.filter - The filter predicate.PluginException - On lookup errors.<T> T get(Class<T> clazz, String key) throws PluginException
clazz - The object type.key - The object key.PluginException - On lookup errors.<T> T get(Class<T> clazz, IPredicate<T> filter) throws PluginException
clazz - The object type.filter - The filter predicate.PluginException - On lookup errors, i.e. more than 1 element returned by
filter.Map<Class<?>,AbstractPluginObject> getEntities()
void clear()
Copyright © 2016. All rights reserved.