Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.dropwizard.bundles.webjars;
 
 
public class WebJarBundle implements Bundle {
  private CacheBuilder cacheBuilder = null;
  public WebJarBundle() {}
  public WebJarBundle(CacheBuilder builder) {
     = builder;
  }
  public WebJarBundle(String... additionalPackages) {
    Collections.addAll(additionalPackages);
  }
  public WebJarBundle(CacheBuilder builderString... additionalPackages) {
     = builder;
    Collections.addAll(additionalPackages);
  }
  public void initialize(Bootstrap<?> bootstrap) {
  }
  public void run(Environment environment) {
    WebJarServlet servlet = new WebJarServlet();
    environment.servlets()
        .addServlet("webjars"servlet)
        .addMapping(. + "*");
  }
New to GrepCode? Check out our FAQ X