org.directwebremoting
Interface Container

All Known Implementing Classes:
AbstractContainer, DefaultContainer, SpringContainer

public interface Container

A very basic IoC container. See ContainerUtil for information on how to setup a Container

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

Method Summary
<T> T
getBean(java.lang.Class<T> type)
          Get an instance of a bean of a given type
 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<java.lang.String> 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

getBean

<T> T getBean(java.lang.Class<T> type)
Get an instance of a bean of a given type

Parameters:
type - 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<java.lang.String> 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