Skip to content

Commit

Permalink
Can initialize with given name
Browse files Browse the repository at this point in the history
  • Loading branch information
caoli5288 committed Sep 12, 2015
1 parent 63a1a0e commit e7d82ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/mengcraft/simpleorm/EbeanHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public void install(boolean ignore) {
public void install() {
install(false);
}

public void initialize() throws Exception {
public void initialize(String name) throws Exception {
if (initialized) {
throw new RuntimeException("Already initialize!");
} else if (driver == null || url == null || userName == null
Expand Down Expand Up @@ -154,6 +154,10 @@ public void initialize() throws Exception {
initialized = true;
}

public void initialize() throws Exception {
initialize(name);
}

public String getName() {
return name;
}
Expand Down

0 comments on commit e7d82ad

Please sign in to comment.