-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd2fe09
commit b82a725
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
javaee-impl/src/main/java/org/jboss/forge/spec/javaee/jpa/container/TomEEContainer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2012 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.jboss.forge.spec.javaee.jpa.container; | ||
|
||
import org.jboss.forge.shell.ShellPrintWriter; | ||
import org.jboss.forge.spec.javaee.jpa.api.DatabaseType; | ||
|
||
import javax.inject.Inject; | ||
|
||
public class TomEEContainer extends JavaEEDefaultContainer { | ||
private static final String DEFAULT_DATASOURCE_NAME = "Default JDBC Database"; | ||
|
||
@Inject | ||
private ShellPrintWriter writer; | ||
|
||
@Override | ||
public ShellPrintWriter getWriter() { | ||
return writer; | ||
} | ||
|
||
@Override | ||
protected DatabaseType getDefaultDatabaseType() { | ||
return DatabaseType.HSQLDB; | ||
} | ||
|
||
@Override | ||
protected String getDefaultDataSource() { | ||
return DEFAULT_DATASOURCE_NAME; | ||
} | ||
} |