Class SetterFactory

java.lang.Object
org.klojang.invoke.SetterFactory

public final class SetterFactory extends Object
Assembles, caches and supplies setters for classes.
Author:
Ayco Holleman
  • Field Details

    • INSTANCE

      public static final SetterFactory INSTANCE
      The one and only instance of SetterFactory.
  • Method Details

    • getSetters

      public Map<String,Setter> getSetters(Class<?> clazz)
      Returns the public setters for the specified class. The returned Map maps property names to Setter instances. The order of the keys within the map is determined by the order of the methods returned by Class.getMethods().
      Parameters:
      clazz - The class for which to retrieve the public setters
      Returns:
      The public setters of the specified class
      Throws:
      IllegalAssignmentException - If the does not have any public setters