public abstract class BaseBeanFactory<T> extends Object implements BeanFactory<T>
Modifier and Type | Field and Description |
---|---|
protected WorkerCtx |
context |
protected T |
instance |
Constructor and Description |
---|
BaseBeanFactory() |
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.
|
protected abstract T |
make(Map<String,Object> topoConf)
Return a new instance of T.
|
BeanFactory<T> |
newInstance()
Returns a new copy if this factory.
|
void |
setStormContext(WorkerCtx context)
Sets the storm context.
|
public void setStormContext(WorkerCtx context)
setStormContext
in interface BeanFactory<T>
public T get(Map<String,Object> topoConf)
get
in interface BeanFactory<T>
topoConf
- The storm configurationpublic BeanFactory<T> newInstance()
newInstance
in interface BeanFactory<T>
BeanFactory
instance.Copyright © 2023 The Apache Software Foundation. All rights reserved.