public interface BeanFactory<T> extends Serializable
Simple interface used for providing services based on the storm configuration.
| Modifier and Type | Method and Description | 
|---|---|
T | 
get(Map<String,Object> stormConf)
Return an instance, which may be shared or independent, of the specified type. 
 | 
BeanFactory<T> | 
newInstance()
Returns a new copy if this factory. 
 | 
void | 
setStormContext(WorkerCtx context)
Sets the storm context. 
 | 
void setStormContext(WorkerCtx context)
Sets the storm context.
context - T get(Map<String,Object> stormConf)
Return an instance, which may be shared or independent, of the specified type.
stormConf - The storm configurationBeanFactory<T> newInstance()
Returns a new copy if this factory.
BeanFactory instance.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.