Package net.sf.jguiraffe.di.impl
Interface SimpleBeanStoreImpl.BeanContributor
-
- All Known Implementing Classes:
ActionBuilder
,ComponentBuilderData
,WindowBuilderData
- Enclosing class:
- SimpleBeanStoreImpl
public static interface SimpleBeanStoreImpl.BeanContributor
Definition of an interface for objects that can contribute beans for a
SimpleBeanStoreImpl
object.The methods defined in this interface allow an implementation to deliver plain data objects (in contrast to
BeanProvider
objects. The implementations of theBeanStore
methods delegate to these methods when the bean store is accessed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
beanNames(Set<String> names)
Obtains the names of the beans available by this contributor.Object
getBean(String name)
Returns the bean with the given name or null if the name is unknown.
-
-
-
Method Detail
-
beanNames
void beanNames(Set<String> names)
Obtains the names of the beans available by this contributor. This method is invoked by theproviderNames()
method.- Parameters:
names
- a set, in which to store the names of the available beans
-
getBean
Object getBean(String name)
Returns the bean with the given name or null if the name is unknown. When queried for a bean theBeanStore
implementation will iterate over all registered contributors and call this method. The first non null value is returned.- Parameters:
name
- the name of the queried bean- Returns:
- the bean with this name or null
-
-