Package com.thewinterframework.component
Interface ComponentResolver<T>
- Type Parameters:
T- The type of object to resolve.
public interface ComponentResolver<T>
Resolves an object into a component.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComponentResolver<Object> The default component resolver, which simply callsObject.toString()and wraps it in a text component. -
Method Summary
-
Field Details
-
DEFAULT
The default component resolver, which simply callsObject.toString()and wraps it in a text component.
-
-
Method Details
-
resolve
Resolves the given object into a component.- Parameters:
t- The object to resolve.- Returns:
- The resolved component.
-