public class ServiceProviderCache extends Object implements ResourceCache<URI>
Modifier and Type | Method and Description |
---|---|
String |
getGlobalConfigurationAware(OslcClient client,
URI uri)
Returns the value of the
"http://jazz.net/xmlns/prod/jazz/process/1.0/globalConfigurationAware" property,
which indicates the level of support of Jazz Global Configuration. |
static ServiceProviderCache |
getInstance()
Returns the cache singleton instance
|
Optional<org.eclipse.lyo.oslc4j.core.model.Publisher> |
getPublisher(OslcClient client,
URI uri)
Returns the publisher of the given service provider.
|
void |
invalidate(URI uri)
Discards any cached value for key
key . |
void |
invalidateAll()
Discards all entries in the cache.
|
public static ServiceProviderCache getInstance()
public void invalidate(URI uri)
ResourceCache
key
.invalidate
in interface ResourceCache<URI>
uri
- the key to remove in the cache.public void invalidateAll()
ResourceCache
invalidateAll
in interface ResourceCache<URI>
public String getGlobalConfigurationAware(OslcClient client, URI uri)
"http://jazz.net/xmlns/prod/jazz/process/1.0/globalConfigurationAware"
property,
which indicates the level of support of Jazz Global Configuration.
Value might be:
"yes"
: the application supports configurations and versioned artifacts."compatible"
: the application does not support configurations, but it can still link to or interact with versioned
artifacts."no"
: the application has no support for configurations or versioning.client
- the OSLC client to query the service provider in case it is not cacheduri
- the service provider URIglobalConfigurationAware
property, "no"
if the property is not set.public Optional<org.eclipse.lyo.oslc4j.core.model.Publisher> getPublisher(OslcClient client, URI uri)
client
- the OSLC client to query the service provider in case it is not cached.uri
- the service provider URI.Optional.empty()
if the provider doesn't declare a Publisher resource.