public class ListBeanProvider extends CollectionBeanProvider
A specific CollectionBeanProvider
implementation that creates
a list bean.
This concrete implementation creates a java.util.ArrayList
in
its createCollection()
method.
Constructor and Description |
---|
ListBeanProvider(Collection<Dependency> deps)
Creates a new instance of
ListBeanProvider and initializes
it with the given dependencies for the list elements. |
Modifier and Type | Method and Description |
---|---|
protected Collection<Object> |
createCollection(int size)
Creates the collection managed by this bean provider.
|
getBean, getBeanClass, getDependencies, getElementDependencies
getLockID, isBeanAvailable, setLockID, shutdown
public ListBeanProvider(Collection<Dependency> deps)
ListBeanProvider
and initializes
it with the given dependencies for the list elements.deps
- a collection with the dependencies of the list elementsprotected Collection<Object> createCollection(int size)
createCollection
in class CollectionBeanProvider
size
- the size of the collectionCopyright © 2016 The JGUIraffe Team. All rights reserved.