We have found code like
private String string = "Not injected.";
@Inject
public void setString(@Named("s") String s) {
this.string = s;
}
(utilitzing JSR-330 annotations) to be very useful to pass in a string value for "s". We would like to be as flexible as possible regarding which container to use, hence also Picocontainer.
As written, Picocontainer silently ignores the inject. How would I hint to PicoContainer to inject e.g. "String injected!" here?