public abstract class AbstractApiRegistrar<D extends org.apache.shenyu.register.common.type.DataTypeParent> extends java.lang.Object implements ApiRegistrar
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractApiRegistrar(ShenyuClientRegisterEventPublisher publisher) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Boolean |
match(ApiBean.ApiDefinition apiDefinition)
Determines whether the apiDefinition can be registered.
|
protected abstract java.lang.Boolean |
match(ApiBean apiBean)
Determines whether apiDefinitions of apiBean can be filtered.
|
protected abstract java.util.List<D> |
parse(ApiBean.ApiDefinition apiDefinition)
Parses the apiDefinition as a registrable objects.
|
protected java.lang.Boolean |
preMatch(ApiBean apiBean)
Determines whether the apiBean can be registered in advance.
|
protected D |
preParse(ApiBean apiBean)
Parses the apiBean as a registrable object.
|
void |
register(ApiBean apiBean)
Registers ApiBean.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregister, registerDataTypeprotected AbstractApiRegistrar(ShenyuClientRegisterEventPublisher publisher)
protected java.lang.Boolean preMatch(ApiBean apiBean)
apiBean - apiBean to be registeredprotected D preParse(ApiBean apiBean)
apiBean - apiBean to be parsedprotected abstract java.lang.Boolean match(ApiBean apiBean)
apiBean - apiBean to be registeredprotected abstract java.lang.Boolean match(ApiBean.ApiDefinition apiDefinition)
apiDefinition - apiDefinition to be registeredprotected abstract java.util.List<D> parse(ApiBean.ApiDefinition apiDefinition)
apiDefinition - apiDefinition to be parsedpublic void register(ApiBean apiBean)
ApiRegistrarregister in interface ApiRegistrarapiBean - apiBean to registerCopyright © 2023 The Apache Software Foundation. All rights reserved.