Class ComponentAdaptor<T>

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.model.ComponentAdaptor<T>
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, 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
    final T
     

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

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

    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 Details

    • model

      public final T model
  • Constructor Details

    • ComponentAdaptor

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

    • create

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