public abstract class AbstractFactory<T> extends Object implements Factory<T>
| Constructor and Description |
|---|
AbstractFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createInstance() |
T |
getInstance()
Returns an instance of the required type.
|
boolean |
isSingleton() |
void |
setSingleton(boolean singleton) |
public boolean isSingleton()
public void setSingleton(boolean singleton)
public T getInstance()
FactorygetInstance in interface Factory<T>protected abstract T createInstance()
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.