Class ComponentAdaptor<T>

  • All Implemented Interfaces:
    com.yahoo.component.Component, java.lang.Comparable<com.yahoo.component.Component>

    public final class ComponentAdaptor<T>
    extends com.yahoo.component.AbstractComponent
    For using non-component model classes with ComponentRegistry.
    Author:
    Tony Vaagenes
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T model  
      • Fields inherited from class com.yahoo.component.AbstractComponent

        isDeconstructable
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentAdaptor​(com.yahoo.component.ComponentId globalComponentId, T model)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> ComponentAdaptor<T> create​(com.yahoo.component.ComponentId globalComponentId, T model)  
      • Methods inherited from class com.yahoo.component.AbstractComponent

        clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • model

        public final T model
    • Constructor Detail

      • ComponentAdaptor

        public ComponentAdaptor​(com.yahoo.component.ComponentId globalComponentId,
                                T model)
    • Method Detail

      • create

        public static <T> ComponentAdaptor<T> create​(com.yahoo.component.ComponentId globalComponentId,
                                                     T model)