com.nhl.bootique.linkrest.BQLinkRestFeature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bootique-linkrest Show documentation
Show all versions of bootique-linkrest Show documentation
Provides LinkRest integration with Bootique
The newest version!
package com.nhl.bootique.linkrest;
import javax.ws.rs.core.Feature;
import javax.ws.rs.core.FeatureContext;
import com.google.inject.Inject;
import com.nhl.link.rest.runtime.LinkRestRuntime;
/**
* An injectable wrapper around {@link LinkRestRuntime} feature.
*/
public class BQLinkRestFeature implements Feature {
private LinkRestRuntime lrRuntime;
@Inject
public BQLinkRestFeature(LinkRestRuntime lrRuntime) {
this.lrRuntime = lrRuntime;
}
@Override
public boolean configure(FeatureContext context) {
lrRuntime.configure(context);
return true;
}
}