public interface ServiceProvider
Modifier and Type | Method and Description |
---|---|
void |
accept(ServiceProviderVisitor visitor)
Accepts a
ServiceProviderVisitor for visits |
ServiceInstance |
getInstance(ServiceInstanceDescriptor serviceInstanceDesc, javax.security.auth.callback.CallbackHandler cbHandler, boolean create)
Returns the
ServiceInstance that corresponds to the specified ServiceInstanceDescriptor If such an instance cannot be found, then a new instance is created and returned if create is true otherwise null is returned. |
java.lang.String |
getName()
Returns the name of this service provider
|
ServiceType[] |
getSupportedServiceTypes()
Returns the
ServiceInstance that corresponds to the specified name |
ServiceInstance getInstance(ServiceInstanceDescriptor serviceInstanceDesc, javax.security.auth.callback.CallbackHandler cbHandler, boolean create) throws JpsException
ServiceInstance
that corresponds to the specified ServiceInstanceDescriptor
If such an instance cannot be found, then a new instance is created and returned if create
is true
otherwise null
is returned.serviceInstanceDesc
- ServiceInstanceDescriptorcbHandler
- CallbackHandler
to be passed to ServiceInstance
create
- whether to create a new instance if an existing instance cannot be foundServiceInstance
that corresponds to the specified ServiceInstanceDescriptor
, or null
if such an instance does not already exist and create
is false
JpsException
ServiceType[] getSupportedServiceTypes()
ServiceInstance
that corresponds to the specified nameServiceType
(s) supported by this ServiceProvider
void accept(ServiceProviderVisitor visitor)
ServiceProviderVisitor
for visitsvisitor
- the visiting ServiceProviderVisitor
java.lang.String getName()