Class RRCTypesDiscoverer
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.client.RRCTypesDiscoverer
-
- All Implemented Interfaces:
org.gcube.informationsystem.model.knowledge.TypesDiscoverer<org.gcube.informationsystem.types.reference.Type>
public class RRCTypesDiscoverer extends Object implements org.gcube.informationsystem.model.knowledge.TypesDiscoverer<org.gcube.informationsystem.types.reference.Type>
TypesDiscovererimplementation backed by aResourceRegistryClientImpl. It is registered on the client'sTypesKnowledgeso that, whenever the local type knowledge needs to resolve aTypeit does not already have, it can transparently fetch its full hierarchy from the Resource Registry server.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceRegistryClientImplresourceRegistryClientThe Resource Registry Client implementation used for type discovery
-
Constructor Summary
Constructors Constructor Description RRCTypesDiscoverer(ResourceRegistryClientImpl resourceRegistryClient)Creates a new RRCTypesDiscoverer with the specified Resource Registry Client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.gcube.informationsystem.types.reference.Type>discover(org.gcube.informationsystem.base.reference.AccessType accessType)
-
-
-
Field Detail
-
resourceRegistryClient
protected ResourceRegistryClientImpl resourceRegistryClient
The Resource Registry Client implementation used for type discovery
-
-
Constructor Detail
-
RRCTypesDiscoverer
public RRCTypesDiscoverer(ResourceRegistryClientImpl resourceRegistryClient)
Creates a new RRCTypesDiscoverer with the specified Resource Registry Client.- Parameters:
resourceRegistryClient- the ResourceRegistryClientImpl to use for type discovery
-
-
Method Detail
-
discover
public Collection<org.gcube.informationsystem.types.reference.Type> discover(org.gcube.informationsystem.base.reference.AccessType accessType)
- Specified by:
discoverin interfaceorg.gcube.informationsystem.model.knowledge.TypesDiscoverer<org.gcube.informationsystem.types.reference.Type>
-
-