|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.plugins.core.objects.core.ObjectManagerDefault
public class ObjectManagerDefault
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 | |
|---|---|
ObjectManagerDefault()
|
|
| Method Summary | |
|---|---|
void |
bind(AbstractPluginObject input)
Bind a object plugin to the manager. |
void |
clear()
Clear all object mappings. |
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 ObjectManagerDefault()
| Method Detail |
|---|
public boolean isBound(Class<?> clazz)
IObjectManager
isBound in interface IObjectManagerclazz - The object type.
public void bind(AbstractPluginObject input)
IObjectManager
bind in interface IObjectManagerinput - The object plugin.
public Object lookup(Class<?> clazz,
String key)
throws PluginException
IObjectManager
lookup in interface IObjectManagerclazz - The object type.key - The object key.
PluginException - On lookup errors.public Map<Class<?>,AbstractPluginObject> getEntities()
IObjectManager
getEntities in interface IObjectManagerpublic void clear()
IObjectManager
clear in interface IObjectManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||