com.cerner.beadledom.client.BeadledomClientLifecycleHookProvider Maven / Gradle / Ivy
The newest version!
package com.cerner.beadledom.client;
import com.cerner.beadledom.guice.dynamicbindings.DynamicBindingProvider;
import com.google.inject.Inject;
import java.lang.annotation.Annotation;
import javax.inject.Provider;
/**
* A Guice provider for {@link ResteasyClientLifecycleHook}.
*
* @author John Leacox
* @deprecated As of 3.6, use Retrofit (https://github.com/square/retrofit) instead.
*/
@Deprecated
class BeadledomClientLifecycleHookProvider implements Provider {
private final Class extends Annotation> annotation;
private DynamicBindingProvider beadledomClientProvider;
BeadledomClientLifecycleHookProvider(Class extends Annotation> annotation) {
this.annotation = annotation;
}
@Inject
void init(DynamicBindingProvider beadledomClientProvider) {
this.beadledomClientProvider = beadledomClientProvider;
}
@Override
public BeadledomClientLifecycleHook get() {
return new BeadledomClientLifecycleHook(beadledomClientProvider.get(annotation), annotation);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy