V
- initialization-parameters for providerpublic class PopulateStoreFromDefine<V extends BeanInitialization> extends Object
NamedProviderStore
from the contents of a Define
.
Objects can be added directly (no initialization) or with initialization.
Constructor and Description |
---|
PopulateStoreFromDefine(Define define,
BeanInitializer<?> propertyInitializer,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
<S extends InitializableBean<S,V>> |
copyInitialize(Class<?> defineClass,
NamedProviderStore<S> destination)
Copies objects of a particular class from the define and initializes.
|
<S extends InitializableBean<?,V> & Provider<T>,T> |
copyProviderInitialize(Class<?> defineClass,
NamedProviderStore<T> destination)
Copies objects of a particular class (which must be a
Provider ) from define
and initializes each. |
<S extends AnchorBean<S>> |
copyWithoutInitialize(Class<?> defineClass,
NamedProviderStore<S> destination)
Copies objects of a particular class from the define without performing any
initialization.
|
public PopulateStoreFromDefine(Define define, BeanInitializer<?> propertyInitializer, Logger logger)
public <S extends AnchorBean<S>> void copyWithoutInitialize(Class<?> defineClass, NamedProviderStore<S> destination) throws OperationFailedException
S
- type of objectsdefineClass
- class to identify objects in define
.destination
- where to copy to.OperationFailedException
- if the identifier already exists, or otherwise the add
operation fails.public <S extends InitializableBean<S,V>> void copyInitialize(Class<?> defineClass, NamedProviderStore<S> destination) throws OperationFailedException
S
- type of objectsdefineClass
- class to identify objects in define
.destination
- where to copy to.OperationFailedException
- if a copied identifier already exists, or otherwise the add
operation fails.public <S extends InitializableBean<?,V> & Provider<T>,T> void copyProviderInitialize(Class<?> defineClass, NamedProviderStore<T> destination) throws OperationFailedException
Provider
) from define
and initializes each.
Specifically, each object will be lazily initialized once when first retrieved from the store.
S
- type of provider-objectsT
- type of objects created by the providerdefineClass
- class to identify objects in define
.destination
- where to copy to.OperationFailedException
- if a copied identifier already exists, or otherwise the add
operation fails.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.