Skip to content

Instantly share code, notes, and snippets.

View TommyAlmeida's full-sized avatar
:shipit:
Focusing

Tomas Almeida TommyAlmeida

:shipit:
Focusing
  • Lisboa, Portugal
View GitHub Profile
@TommyAlmeida
TommyAlmeida / DatabaseMetaBuilder.java
Last active September 11, 2019 08:53
Vamos supor que o teu plugin poderá utilizar Sql numas coisas e MongoDb noutras, isto vai resolver o teu problema de uma maneira correta.
import java.util.Properties;
import java.util.function.Consumer;
public interface DatabaseMetaBuilder {
DatabaseMetaBuilder with(Consumer<DatabaseMetaBuilder> consumer);
void addProperty(String key, String value);
Properties wrap();