org.directwebremoting
Interface Container

All Known Implementing Classes:
AbstractContainer, DefaultContainer, SpringContainer

public interface Container

A very basic IoC container

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Method Summary
 java.lang.Object getBean(java.lang.String name)
          Get an instance of a bean of a given name (usually name=class name).
 java.util.Collection getBeanNames()
          Get a list of all the available beans.
 

Method Detail

getBean

java.lang.Object getBean(java.lang.String name)
Get an instance of a bean of a given name (usually name=class name).

Parameters:
name - The type to get an instance of
Returns:
The object of the given type, or null if the object does not exist

getBeanNames

java.util.Collection getBeanNames()
Get a list of all the available beans. Implementation of this method is optional so it is valid for this method to return an empty collection, but to return Objects when queried directly using getBean(String). This method should only be used for debugging purposes.

Returns:
A collection containing all the availble bean names.

Copyright ? 2005