I noticed that some Spring samples use
to inject a org.springframework.core.env.Environment. Or as the Javadoc says:
Is there an exhaustive list of objects (besides Environment) provided by Spring that a Spring user may be interested to inject in one's beans?
@Inject private Environment environment;
Beans managed within an ApplicationContext may register to be EnvironmentAware or @Inject the Environment in order to query profile state or resolve properties directly.