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 AbstractFactory()
public boolean isSingleton()
public void setSingleton(boolean singleton)
public T getInstance()
Factory
getInstance
in interface Factory<T>
protected abstract T createInstance()
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.