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 the BeanStore
methods delegate to
these methods when the bean store is accessed.
Modifier and Type | Method and 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.
|
void beanNames(Set<String> names)
providerNames()
method.names
- a set, in which to store the names of the available
beansObject getBean(String name)
BeanStore
implementation will iterate over all registered contributors and call
this method. The first non null value is returned.name
- the name of the queried beanCopyright © 2016 The JGUIraffe Team. All rights reserved.