Java/Jersey - creating own injection resolver with ParamInjectionResolver - strange behavior
- 阅读更多 关于 Java/Jersey - creating own injection resolver with ParamInjectionResolver - strange behavior
I am trying to create an injection resolver. I have a data class: public class MyData { ... } I have the following annotation: @Target({ElementType.FIELD, ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface MyDataInject { } My injection resolver looks like this: public class MyDataInjectionResolver extends ParamInjectionResolver<MyDataInject> { public MyDataInjectionResolver () { super(MyDataValueFactoryProvider.class); } @Singleton public static class MyDataValueFactoryProvider extends AbstractValueFactoryProvider { @Inject public