クラス EndpointDiscoverer<E extends ExposableEndpoint<O>,O extends Operation>
java.lang.ObjectSE
org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<E,O>
- 型パラメーター:
E- エンドポイント型O- 操作型
- 実装済みのインターフェース一覧:
EndpointsSupplier<E>
- 既知の直属サブクラス
ControllerEndpointDiscoverer、JmxEndpointDiscoverer、ServletEndpointDiscoverer、WebEndpointDiscoverer
public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>,O extends Operation>
extends ObjectSE
implements EndpointsSupplier<E>
- 導入:
- 2.0.0
- 作成者:
- Andy Wilkinson, Stephane Nicoll, Phillip Webb
Nested Class Summary
ネストされたクラスコンストラクター概要
コンストラクターコンストラクター説明EndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, CollectionSE<OperationInvokerAdvisor> invokerAdvisors, CollectionSE<EndpointFilter<E>> filters) 新しいEndpointDiscovererインスタンスを作成します。方法の概要
修飾子と型メソッド説明protected abstract EcreateEndpoint(ObjectSE endpointBean, EndpointId id, boolean enabledByDefault, CollectionSE<O> operations) endpointを作成するために呼び出されるファクトリメソッド。protected abstract OcreateOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) endpoint operationを作成するファクトリメソッド。protected abstract EndpointDiscoverer.OperationKeycreateOperationKey(O operation) 指定された操作のEndpointDiscoverer.OperationKeyを作成します。final CollectionSE<E>提供されたエンドポイントを返します。protected booleanisEndpointTypeExposed(ClassSE<?> beanType) エンドポイント Bean を公開するかどうかを決定します。protected booleanisExtensionTypeExposed(ClassSE<?> extensionBeanType) 拡張 Bean を公開するかどうかを決定します。
コンストラクターの詳細
EndpointDiscoverer
public EndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, CollectionSE<OperationInvokerAdvisor> invokerAdvisors, CollectionSE<EndpointFilter<E>> filters) 新しいEndpointDiscovererインスタンスを作成します。- パラメーター:
applicationContext- ソースアプリケーションコンテキストparameterValueMapper- パラメーター値マッパーinvokerAdvisors- 適用する呼び出し元アドバイザーfilters- 適用するフィルター
メソッドの詳細
getEndpoints
インターフェースからコピーされた説明:EndpointsSupplier提供されたエンドポイントを返します。- 次で指定:
- インターフェース
EndpointsSupplier<E extends ExposableEndpoint<O>>のgetEndpoints - 戻り値:
- エンドポイント
isExtensionTypeExposed
拡張 Bean を公開するかどうかを決定します。サブクラスはこのメソッドをオーバーライドして、追加のロジックを提供できます。- パラメーター:
extensionBeanType- 拡張 Bean 型- 戻り値:
- 拡張機能が公開されている場合は
true
isEndpointTypeExposed
エンドポイント Bean を公開するかどうかを決定します。サブクラスはこのメソッドをオーバーライドして、追加のロジックを提供できます。- パラメーター:
beanType- エンドポイント Bean 型- 戻り値:
- エンドポイントが公開されている場合は
true
getEndpointType
createEndpoint
protected abstract E createEndpoint(ObjectSE endpointBean, EndpointId id, boolean enabledByDefault, CollectionSE<O> operations) endpointを作成するために呼び出されるファクトリメソッド。- パラメーター:
endpointBean- ソースエンドポイント Beanid- エンドポイントの IDenabledByDefault- エンドポイントがデフォルトで有効になっている場合operations- エンドポイント操作- 戻り値:
- 作成されたエンドポイント (
DiscoveredEndpointが推奨されます)
createOperation
protected abstract O createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) endpoint operationを作成するファクトリメソッド。- パラメーター:
endpointId- エンドポイント IDoperationMethod- 操作方法invoker- 使用する呼び出し元- 戻り値:
- 作成された操作
createOperationKey
指定された操作のEndpointDiscoverer.OperationKeyを作成します。- パラメーター:
operation- ソース操作- 戻り値:
- 操作キー