public abstract class GenericFactory<F> extends Object
| Constructor and Description |
|---|
GenericFactory() |
| Modifier and Type | Method and Description |
|---|---|
F |
factory()
Main method of this factory.
|
abstract F |
factoryDefault()
It forces the concrete class to fabricate an default object
|
protected F |
factoryFromClassName(String className)
Instantiate an object from the name of this class
|
protected abstract String |
getVariableName()
Every concrete factory must define in which environment variable
it contains the name of the class to be fabricated.
|
public F factory()
protected F factoryFromClassName(String className)
className - class name to createpublic abstract F factoryDefault()
protected abstract String getVariableName()
Copyright © 2020 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.