All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nhl.bootique.linkrest.BQLinkRestFeature Maven / Gradle / Ivy

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy