Pablo Fernandez wrote:
> Hi,
> 
> I'd like to know the stage (PRODUCTION, DEVELOPMENT) that my injector
> is in.
> 
> I basically want to do something like this
> 
> boolean indentXml = Injector.CURRENT_STAGE != PRODUCTION
> bind(Boolean.class).annotatedWith(Names.named("xml.indent")).toInstance
> (indentXml);


See AbstractModule#currentStage().

Max.


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to