title: Should enum objects be stateless?
body: <p>As by design an enum constant in java is a singleton, and for sake of concurrent usage I normally create stateless enum instances and use method parameters to inject the data as needed.</p>
  
  <p>Example:</p>
  
  <p>Currently I am creating a REST service which has Operations (implemented as an enum using a variant of the strategy pattern). </p>
  
  <pre><code>public enum Operation {
  
    DO_THIS() {
      public Result doSomething(Object theData) {
      }
    } ,
    // Other Operations go here
    ;
  
    public abstract Result doSomething(Object theData);
  
  }
  </code></pre>
  
  <p>Now I want to collect data about how often an operation has been called and how often it succeeded and the like.</p>
  
  <p>I could save the state externally when using the enum instance but it rather seems that the state should be saved in the Operation as the operation should contain it's own state.</p>
  
  <p>Now my general question is:</p>
  
  <p><strong>Is a stateful enum instance (besides from concurrency issues) a bad design?</strong></p>