Note that there are some explanatory texts on larger screens.

plurals
  1. POUse Guice SPI to programmatically add InjectionPoint
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI guess since `InjectionPoint` is a final class you cannot extend it. Anyway, *any* possible injection point in Java language necessarily reduces down to static/instance method or field or a constructor since these are all of the parts of the class which can interact with external world. It is not possible to say more until you describe exactly what you want.
      singulars
    2. COIn Guice, injection points are defined via @Inject (jsr330 or guice). This is a convention others may use another systems to define those injection points. We could have imagined write down those injection points in simple text files. My question is : from that list can I convert them in guice InjectionPoint to virtually add "@Inject" and that virtual "@Inject" fully understood when creating the injector. My goal is not to extends InjectionPoint but simply use them as SPI element. Hope i'm clearer.
      singulars
    3. CONo, you are not really correct. Injection points is more general concept, see http://code.google.com/p/google-guice/wiki/ExtendingGuice. It is absolutely possible to inject into fields/constructors not annotated by `@Inject`. For example, default constructor is an injection point (even though it has no dependencies-injectees). Another example is `@InjectLogger` annotation from the official documentation. In fact, via `TypeListener`s you can inject dependencies into virtually any field/method/constructor the class provides. So, `@Inject` is not a definition of injection point.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload