Skip to content

Commit

Permalink
Merge 44b1eaf into d9dcfb0
Browse files Browse the repository at this point in the history
  • Loading branch information
joschi committed May 4, 2019
2 parents d9dcfb0 + 44b1eaf commit 7eb5ff4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
Expand Up @@ -9,7 +9,7 @@
*
* @param <T> the required configuration interface
*/
public interface ConfiguredBundle<T extends Configuration> {
public interface ConfiguredBundle<T> {
/**
* Initializes the environment.
*
Expand Down
@@ -1,7 +1,5 @@
package io.dropwizard.db;

import io.dropwizard.Configuration;

public interface DatabaseConfiguration<T extends Configuration> {
public interface DatabaseConfiguration<T> {
PooledDataSourceFactory getDataSourceFactory(T configuration);
}
Expand Up @@ -19,7 +19,7 @@

import static java.util.Objects.requireNonNull;

public abstract class HibernateBundle<T extends Configuration> implements ConfiguredBundle<T>, DatabaseConfiguration<T> {
public abstract class HibernateBundle<T> implements ConfiguredBundle<T>, DatabaseConfiguration<T> {
public static final String DEFAULT_NAME = "hibernate";

@Nullable
Expand Down
@@ -1,6 +1,5 @@
package io.dropwizard.hibernate;

import io.dropwizard.Configuration;
import org.glassfish.jersey.server.internal.scanning.AnnotationAcceptingListener;
import org.glassfish.jersey.server.internal.scanning.PackageNamesScanner;

Expand All @@ -13,7 +12,7 @@
/**
* Extension of HibernateBundle that scans given package for entities instead of giving them by hand.
*/
public abstract class ScanningHibernateBundle<T extends Configuration> extends HibernateBundle<T> {
public abstract class ScanningHibernateBundle<T> extends HibernateBundle<T> {
/**
* @param pckg string with package containing Hibernate entities (classes annotated with Hibernate {@code @Entity}
* annotation) e. g. {@code com.codahale.fake.db.directory.entities}
Expand Down
@@ -1,6 +1,5 @@
package io.dropwizard.views;

import io.dropwizard.Configuration;
import io.dropwizard.ConfiguredBundle;
import io.dropwizard.setup.Environment;
import io.dropwizard.util.Sets;
Expand Down Expand Up @@ -37,7 +36,7 @@
* }
* </code></pre>
*
*<p>The {@code "profile.ftl[hx]"} or {@code "profile.mustache"} is the path of the template relative to the class name. If
* <p>The {@code "profile.ftl[hx]"} or {@code "profile.mustache"} is the path of the template relative to the class name. If
* this class was {@code com.example.application.PersonView}, Freemarker or Mustache would then look for the file
* {@code src/main/resources/com/example/application/profile.ftl} or {@code
* src/main/resources/com/example/application/profile.mustache} respectively. If the template path
Expand Down Expand Up @@ -85,7 +84,7 @@
*
* See Also: <a href="http://mustache.github.io/mustache.5.html">Mustache Manual</a>
*/
public class ViewBundle<T extends Configuration> implements ConfiguredBundle<T>, ViewConfigurable<T> {
public class ViewBundle<T> implements ConfiguredBundle<T>, ViewConfigurable<T> {
private final Iterable<ViewRenderer> viewRenderers;

public ViewBundle() {
Expand Down
@@ -1,9 +1,7 @@
package io.dropwizard.views;

import io.dropwizard.Configuration;

import java.util.Map;

public interface ViewConfigurable<T extends Configuration> {
public interface ViewConfigurable<T> {
Map<String, Map<String, String>> getViewConfiguration(T configuration);
}

0 comments on commit 7eb5ff4

Please sign in to comment.