P
- type of the information providerpublic abstract class AbstractProviderService<P extends Provider> extends java.lang.Object implements ProviderService<P>
Modifier | Constructor and Description |
---|---|
protected |
AbstractProviderService(P provider)
Creates a provider service on behalf of the specified provider.
|
Modifier and Type | Method and Description |
---|---|
void |
checkValidity()
Checks the validity of this provider service.
|
void |
invalidate()
Invalidates this provider service.
|
P |
provider()
Returns the provider to which this service has been issued.
|
protected AbstractProviderService(P provider)
provider
- provider to which this service is being issuedpublic void invalidate()
public void checkValidity()
java.lang.IllegalStateException
- if the service is no longer validpublic P provider()
ProviderService
provider
in interface ProviderService<P extends Provider>