public interface Filler
「Co」Zero for JSR311 Arguments
There are a uniform request flow to get parameters to support JSR311 in zero framework, here I defined Filler interface ( Fill argument into container, it’s specific component )
key = value attributes into map.EmptyFiller to taken the flow node and then continue for extracting.For Standard JSR311, it support most parameter annotations and extend JSR311 for business requirement.
| Modifier and Type | Field and Description |
|---|---|
static Set<Class<? extends Annotation>> |
NO_VALUE
The type of parameters that will use
EmptyFiller for taking place. |
static ConcurrentMap<Class<? extends Annotation>,Filler> |
PARAMS
JSR311 Standard mapping from annotation to
Filler component |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(String name,
Class<?> paramType,
io.vertx.ext.web.RoutingContext datum)
The major code logic to get the value of input field name here.
|
static final ConcurrentMap<Class<? extends Annotation>,Filler> PARAMS
JSR311 Standard mapping from annotation to Filler component
static final Set<Class<? extends Annotation>> NO_VALUE
The type of parameters that will use EmptyFiller for taking place.
Object apply(String name, Class<?> paramType, io.vertx.ext.web.RoutingContext datum)
The major code logic to get the value of input field name here.
name - The parameter nameparamType - The parameter declared typedatum - The RoutingContext of Vert.x ( vertx-web )Copyright © 2021. All rights reserved.