org.oddjob.arooa.registry
Interface BeanRegistry

All Superinterfaces:
BeanDirectory
All Known Implementing Classes:
LinkedBeanRegistry, SimpleBeanRegistry

public interface BeanRegistry
extends BeanDirectory

Register components by id and look them up.

Author:
Rob Gordon.

Method Summary
 void register(String id, Object component)
          Register an object.
 void remove(Object component)
          Remove a component from the registry if it exists.
 
Methods inherited from interface org.oddjob.arooa.registry.BeanDirectory
getAllByType, getIdFor, lookup, lookup
 

Method Detail

register

void register(String id,
              Object component)
              throws InvalidIdException
Register an object. The id should not contain reserved characters.

Parameters:
id - The id of the object.
object - The object.
Throws:
InvalidIdException

remove

void remove(Object component)
Remove a component from the registry if it exists.

Parameters:
component - The component.