java.lang.Object
org.glassfish.pfl.dynamic.codegen.impl.Attribute<T>

public class Attribute<T> extends Object
Class used to define dynamic attributes on AttributedObject instances. Note that T cannot be a generic type, due to problems with Class<T> when T is a generic. To work around this problem, simply create an interface that extends the generic type (you are programming to interfaces, right?).
  • Constructor Details

    • Attribute

      public Attribute(Class<T> cls, String name, T defaultValue)
    • Attribute

      public Attribute(Class<T> cls, String name, org.glassfish.pfl.basic.func.NullaryFunction<T> initializer)
  • Method Details