org.wamblee.ioc
Interface BeanFactory


public interface BeanFactory

Bean factory used to obtain objects in a transparent way.

Author:
Erik Brakkee

Method Summary
<T> T
find(Class<T> aClass)
           
 Object find(String aId)
          Finds a bean based on id.
<T> T
find(String aId, Class<T> aClass)
           
 

Method Detail

find

Object find(String aId)
Finds a bean based on id.

Parameters:
aId - Id of the bean.
Returns:
Object (always non-null).
Throws:
BeanFactoryException - In case the object could not be found.

find

<T> T find(Class<T> aClass)

find

<T> T find(String aId,
           Class<T> aClass)


Copyright © 2011. All Rights Reserved.