|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.plugins.core.objects.PluginObjectManager
public class PluginObjectManager
Manages the set of AbstractPluginObject created on a given specification.
| Field Summary | |
|---|---|
protected Map<Class<?>,AbstractPluginObject> |
entities
Map of instances for a given entity. |
| Constructor Summary | |
|---|---|
PluginObjectManager()
|
|
| Method Summary | |
|---|---|
void |
bind(AbstractPluginObject input)
Bind a object plugin to the manager. |
void |
clear()
Clear all object mappings. |
static PluginObjectManager |
get()
The object manager instance (Thread safe). |
Map<Class<?>,AbstractPluginObject> |
getEntities()
The mapping of all entities. |
boolean |
isBound(Class<?> clazz)
Check if a given class is bound to a AbstractPluginObject. |
Object |
lookup(Class<?> clazz,
String key)
Lookup for a object of a given type, with the given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<Class<?>,AbstractPluginObject> entities
| Constructor Detail |
|---|
public PluginObjectManager()
| Method Detail |
|---|
public static PluginObjectManager get()
public void clear()
public boolean isBound(Class<?> clazz)
clazz - The object type.
public void bind(AbstractPluginObject input)
input - The object plugin.
public Object lookup(Class<?> clazz,
String key)
throws PluginException
clazz - The object type.key - The object key.
PluginException - On lookup errors.public Map<Class<?>,AbstractPluginObject> getEntities()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||