クラス 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
ネストされたクラスのサマリー
ネストされたクラスコンストラクターのサマリー
コンストラクターコンストラクター説明EndpointDiscoverer
(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, CollectionSE<OperationInvokerAdvisor> invokerAdvisors, CollectionSE<EndpointFilter<E>> filters) 新しいEndpointDiscoverer
インスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明protected abstract E
createEndpoint
(ObjectSE endpointBean, EndpointId id, boolean enabledByDefault, CollectionSE<O> operations) endpoint
を作成するために呼び出されるファクトリメソッド。protected abstract O
createOperation
(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) endpoint operation
を作成するファクトリメソッド。protected abstract EndpointDiscoverer.OperationKey
createOperationKey
(O operation) 指定された操作のEndpointDiscoverer.OperationKey
を作成します。final CollectionSE<E>
提供されたエンドポイントを返します。protected boolean
isEndpointTypeExposed
(ClassSE<?> beanType) エンドポイント Bean を公開するかどうかを決定します。protected boolean
isExtensionTypeExposed
(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
- ソース操作- 戻り値:
- 操作キー