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