@Singleton public final class ResourceMethodInvocationHandlerFactory extends Object implements ResourceMethodInvocationHandlerProvider
resource method
invocation handler provider
factory.
When invoked, the factory iterates over the registered custom resource method invocation handler providers
invoking their
createPatternFor(...)
methods and returns the first non-null invocation handler
instance retrieved from the providers. If no custom providers
are available, or if none of the providers returns a non-null invocation handler,
in such case a default invocation handler provided by the factory is returned.Modifier and Type | Method and Description |
---|---|
InvocationHandler |
create(Invocable resourceMethod)
Get the invocation handler for the invocable resource method.
|
public InvocationHandler create(Invocable resourceMethod)
ResourceMethodInvocationHandlerProvider
null
in case the method is not supported by the provider for whatever
reason.create
in interface ResourceMethodInvocationHandlerProvider
resourceMethod
- invocable resource method.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.