de.upb.swtpra05.group03.shuttle
Interface ModuleContainerInterface

All Known Implementing Classes:
ModuleContainer

public interface ModuleContainerInterface

Interface of a module container which maps the contained objects with their class, super classes and all interfaces so they can be used to fulfill service dependencies of Modules at their initialization to avoid circular dependencies.

Version:
$Revision: 1.3 $

Method Summary
 java.lang.Object get(java.lang.Class aClass)
          Returns the instance of given class / interface or -- if more than one instance is present and a interface is given -- returns a java.lang.reflect.Proxy instance of given interface which delegates any method calls to all instances of given interface with the return value of the first instance.
 java.util.List getAll(java.lang.Class aClass)
          Returns all instances of given class / interface.
 java.lang.Object getFirst(java.lang.Class aClass)
          Returns the first instance of given class / interface.
 

Method Detail

get

public java.lang.Object get(java.lang.Class aClass)
Returns the instance of given class / interface or -- if more than one instance is present and a interface is given -- returns a java.lang.reflect.Proxy instance of given interface which delegates any method calls to all instances of given interface with the return value of the first instance.

Parameters:
aClass - class / interface of instance to return
Returns:
instance of given class / interface or proxy instance of given interface

getFirst

public java.lang.Object getFirst(java.lang.Class aClass)
Returns the first instance of given class / interface.

Parameters:
aClass - class / interface of instance to return
Returns:
the first instance of given class / interface

getAll

public java.util.List getAll(java.lang.Class aClass)
Returns all instances of given class / interface.

Parameters:
aClass - class / interface of instances to return
Returns:
all instances of given class/interface as list