org.specrunner.plugins.core.objects
Interface IObjectManager

All Known Implementing Classes:
ObjectManagerDefault

public interface IObjectManager

Defined a repository of objects.

Author:
Thiago Santos.

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.
 

Method Detail

isBound

boolean isBound(Class<?> clazz)
Check if a given class is bound to a AbstractPluginObject.

Parameters:
clazz - The object type.
Returns:
true, of bound, false, otherwise.

bind

void bind(AbstractPluginObject input)
Bind a object plugin to the manager.

Parameters:
input - The object plugin.

lookup

Object lookup(Class<?> clazz,
              String key)
              throws PluginException
Lookup for a object of a given type, with the given key.

Parameters:
clazz - The object type.
key - The object key.
Returns:
The object if exists,null, otherwise.
Throws:
PluginException - On lookup errors.

getEntities

Map<Class<?>,AbstractPluginObject> getEntities()
The mapping of all entities.

Returns:
The entity mapping.

clear

void clear()
Clear all object mappings.



Copyright © 2014. All rights reserved.