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> topoConf)
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.
T get(Map<String,Object> topoConf)
Return an instance, which may be shared or independent, of the specified type.
topoConf
- The storm configurationBeanFactory<T> newInstance()
Returns a new copy if this factory.
BeanFactory
instance.Copyright © 2019 The Apache Software Foundation. All rights reserved.