@Inject GetUserList(UserRepository userRepository, ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread) { super(threadExecutor, postExecutionThread); this.userRepository = userRepository; }
@Inject GetUserDetails(UserRepository userRepository, ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread) { super(threadExecutor, postExecutionThread); this.userRepository = userRepository; }
@Inject private void inject(ITestBean testBean4, NestedTestBean[] nestedTestBeans, IndexedTestBean indexedTestBean) { this.testBean4 = testBean4; this.indexedTestBean = indexedTestBean; this.nestedTestBeans = nestedTestBeans; }
@SuppressWarnings("serial") public static class ObjectFactoryMapFieldInjectionBean implements Serializable { @Inject private Provider<Map<String, TestBean>> testBeanFactory; public void setTestBeanFactory(Provider<Map<String, TestBean>> testBeanFactory) { this.testBeanFactory = testBeanFactory; } public TestBean getTestBean() { return this.testBeanFactory.get().values().iterator().next(); } }
public static class ProviderOfOptionalFieldInjectionBean { @Inject private Provider<Optional<TestBean>> testBean; public Optional<TestBean> getTestBean() { return this.testBean.get(); } }
@Inject public ConstructorsCollectionResourceInjectionBean(ITestBean testBean4, List<NestedTestBean> nestedTestBeans) { this.testBean4 = testBean4; this.nestedTestBeans = nestedTestBeans; }
@Inject private void inject(ITestBean testBean4, List<NestedTestBean> nestedTestBeans, IndexedTestBean indexedTestBean) { this.testBean4 = testBean4; this.indexedTestBean = indexedTestBean; this.nestedTestBeans = nestedTestBeans; }
@Inject public ClusterDeflectorResource(@Context HttpHeaders httpHeaders, NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, @Named("proxiedRequestsExecutorService") ExecutorService executorService) { super(httpHeaders, nodeService, remoteInterfaceProvider, executorService); }
public static class OptionalListFieldInjectionBean { @Inject private Optional<List<TestBean>> testBean; public Optional<List<TestBean>> getTestBean() { return this.testBean; } }
@Inject public ClusterLoggersResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, @Context HttpHeaders httpHeaders, @Named("proxiedRequestsExecutorService") ExecutorService executorService) throws NodeNotFoundException { super(httpHeaders, nodeService, remoteInterfaceProvider, executorService); }