Questions tagged [javax.inject]

7 questions
1
vote
1 answer

Jooby Query Param Value

Here is the resource class as the earlier dependency is Jooby. How to add a new query param value which can by default false if not passed and 1st parameter is mandatory import javax.ws.rs.QueryParam; import javax.ws.rs.DefaultValue; import…
CodeCool
  • 193
  • 2
  • 12
0
votes
1 answer

Unresolved reference: javax.inject in Android Studio

I'm new to Android Studio and this might be a very basic question but I would like to better understand what is happening. I'm trying to copy over some functionality from an example project - (https://github.com/android/architecture-samples - main…
ufghd34
  • 3
  • 3
0
votes
0 answers

Injecting Singleton services into Prototype Bean

I have this code: Caller: public class MyManager { @Inject private ObjectProvider mySvcProvider; public void processMyData(){ MyService mySvc = mySvcProvider.getObject("myName", "c:\myfolder"); …
Nila
  • 71
  • 6
0
votes
0 answers

import statement error for Micronaut - Gradle project in Eclipse JDT

I have created a simple micronaut project using mn cli and followed the steps to generate eclipse project (using gradlew eclipse ) Everything looks fine however when I create any service and annotate with @Singleton annotation, Eclipse gives the…
jatanp
  • 3,982
  • 4
  • 40
  • 46
0
votes
1 answer

Glassfish 5.1 missing modules from previous versions

We have an application running on Glassfish 5.0.1 and before that 4.1.1 versions. Recently server is updated to Glassfish 5.1.0 and our application can not be compiled due to the missing of javax.inject.Inject. This relevant jar was in the previous…
0
votes
1 answer

javax.inject @Inject not working as expected

I am trying to understand how javax.inject gonna work, but it seems not working as expected. package demo333; import javax.inject.Inject; import javax.inject.Named; public class Demo2452 { @Inject private @Named("AA1") AA aa; public…
john
  • 925
  • 1
  • 12
  • 20
0
votes
1 answer

Is `javax.inject` available in Spring Boot?

I have been working on a Spring Boot project (version 2.0.4.RELEASE). Following is the build.gradle plugins { id 'java' id 'eclipse' id 'org.springframework.boot' version '2.0.4.RELEASE' id 'io.spring.dependency-management'…
Dilini Rajapaksha
  • 2,610
  • 4
  • 30
  • 41