title: Trouble injecting a value into inner class with Spring?
body: <p>I have a private static inner class that I need to inject a value into and I am having no luck.</p>
  
  <p>My code's pattern is as follows:</p>
  
  <pre><code>@Component
  public final class someClassUtil {
  
      @Component
      private static class innerClass {
          private transient boolean myVar;
  
          @Value("${my.value.to.inject}")
          public void setMyVar(final boolean myVar) {
              this.myVar = myVar;
          }
      } 
  }
  </code></pre>
  
  <p>I have a feeling that it may have something to do with the access modifiers, but I have tried many variants with no success. Any thoughts?</p>