Package com.yahoo.component.chain.model
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 inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
ConstructorDescriptionComponentAdaptor
(com.yahoo.component.ComponentId globalComponentId, T model) -
Method Summary
Modifier and TypeMethodDescriptionstatic <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
-
Field Details
-
model
-
-
Constructor Details
-
ComponentAdaptor
-
-
Method Details
-
create
public static <T> ComponentAdaptor<T> create(com.yahoo.component.ComponentId globalComponentId, T model)
-