import java.util.Map;
import griffon.util.AbstractMapResourceBundle;
import static griffon.util.CollectionUtils.map;
public class DataSource extends AbstractMapResourceBundle {
@Override
protected void initialize(Map<String, Object> entries) {
map(entries)
.e("dataSource", map()
.e("driverClassName", "org.h2.Driver")
)
.e("environments", map()
.e("development", map()
.e("dataSource", map()
.e("url", "jdbc:h2:mem:sample-dev")
)
)
.e("test", map()
.e("dataSource", map()
.e("url", "jdbc:h2:mem:sample-test")
)
)
.e("production", map()
.e("dataSource", map()
.e("url", "jdbc:h2:file:/opt/:sample/data/db")
)
)
);
}
}