jakarta.inject.Singleton scope. Only services
that are created by HK2 are candidates for interception.
In particular services created by the provide method of
the Factory interface can not be intercepted.
An implementation of InterceptionService must be in the Singleton scope.
Implementations of InterceptionService will be instantiated as soon as
they are added to HK2 in order to avoid deadlocks and circular references.
Therefore it is recommended that implementations of InterceptionService
make liberal use of jakarta. or IterableProvider
when injecting dependent services so that these services are not instantiated
when the InterceptionService is created
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: if null (or an empty list) then this constructor should NOT be intercepted. Otherwise the list of interceptors to apply to this methodA constructor that may
be intercepted constructor)The single chosen constructor of a service that passes the
|
| public Filter | Returns: The filter that will be applied to a descriptor to determine if it is to be intercepted. Should not return nullIf the returned filter returns true then the methods
of the service will be passed to |
| public List | Returns: if null (or an empty list) then this method should NOT be intercepted. Otherwise the list of interceptors to apply to this methodA non-final method that may
be intercepted method)Each non-final method of a service that passes the
|
| getConstructorInterceptors | back to summary |
|---|---|
| public List The single chosen constructor of a service that passes the
| |
| getDescriptorFilter | back to summary |
|---|---|
| public Filter getDescriptorFilter() If the returned filter returns true then the methods
of the service will be passed to
| |
| getMethodInterceptors | back to summary |
|---|---|
| public List Each non-final method of a service that passes the
| |