title: Using Jackson JSON Views without annotating original bean class
body: <p>Is there any way that I can use Jackson JSON Views or something like it, without having to annotate the original bean class?  I'm looking for some kind of runtime/dynamic configuration to let me do something similar.</p>
  
  <p>My bean is an <code>@Entity</code> packaged in a JAR that may be shared by multiple projects.  I'm trying to avoid touching and re-packaging the shared JAR because of UI changes in the consuming projects.  </p>
  
  <p>Ideally I'd like to do something like</p>
  
  <pre><code>jsonViewBuilder = createViewBuilder(View.class);
  jsonViewBuilder.addProperty("property1");
  jsonViewBuilder.addProperty("property2");
  </code></pre>
  
  <p>to replace</p>
  
  <pre><code>Bean {
    @JsonView(View.class)
    String property1;
  
    @JsonView(View.class)
    String property2;
  }
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Underlying environment: Spring 3.0, Spring MVC and Glassfish 3.1.1.</p>