title: How can the Spring Environment be injected properly in one method but not another?
body: <p><code>neo4jDatabase()</code> is fine but <code>environment</code> is always null in <code>graphDatabaseService()</code>... how/why?</p>
  
  <pre><code>@Configuration
  @PropertySource("classpath:/neo4j.properties")
  @EnableNeo4jRepositories("reservation.repository.neo4j")
  public class Neo4jConfig extends Neo4jConfiguration {
  
      @Inject
      Environment environment;
  
      @Bean(initMethod = "setupDb")
      public Neo4jDatabase neo4jDatabase() {
          // Environment fine here...
          return new Neo4jDatabase(this.environment.getProperty("data.file.path"));
      }
  
      @Bean(destroyMethod = "shutdown")
      public GraphDatabaseService graphDatabaseService() {
          if (environment == null) {
              // Always gets here for some reason...why?
              return new EmbeddedGraphDatabase("/Temp/neo4j/database");
          } else {
              return new EmbeddedGraphDatabase(this.environment.getProperty("database.path"));
          }
      }
  }
  </code></pre>
  
  <p>Versions:
  Spring 3.2.0.RELEASE, spring-data-neo4j 2.1.0.RELEASE.</p>