public abstract class AbstractRay<T> extends Object implements AoRay<T>
Template pattern to provide all the calculation metadata in current class, all sub-classes could share the data structure that current class defined.
Here are two hash maps that stored field = xx, the xx means components of following two categories:
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<String,io.vertx.tp.modular.reference.RaySource> |
input
The hashmap reference of
field = . |
protected ConcurrentMap<String,RResult> |
output
The hashmap reference of
field = . |
protected DataTpl |
tpl
The reference to
DataTpl that be related to model definition. |
| Constructor and Description |
|---|
AbstractRay() |
| Modifier and Type | Method and Description |
|---|---|
T |
attach(T input)
This method will modify the input
Record element(s). |
abstract T |
doAttach(T input)
This method must be inherit by all sub-classes, it provide reference data mounting.
|
AoRay<T> |
on(DataTpl tpl)
Bind the component to data model template
DataTpl. |
protected transient ConcurrentMap<String,io.vertx.tp.modular.reference.RaySource> input
The hashmap reference of field = .RaySource
protected transient ConcurrentMap<String,RResult> output
The hashmap reference of field = .AoRule
public AoRay<T> on(DataTpl tpl)
Bind the component to data model template DataTpl.
The critical code logical is as following:
public T attach(T input)
This method will modify the input Record element(s).
Here contains shorten code logical when the hash map is EMPTY, skip reference calculator.
Copyright © 2021. All rights reserved.