org.gcube.common.informationsystem.publisher.impl.registrations.resources
Class ISRegistryInstanceGroup

java.lang.Object
  extended by org.gcube.common.informationsystem.publisher.impl.registrations.resources.ISRegistryInstanceGroup

public class ISRegistryInstanceGroup
extends Object

List of ISRegistry instances currently available in the infrastructure

Author:
Manuele Simi (ISTI-CNR)

Method Summary
 void addRegistry(ISRegistryInstance instance)
          Adds a new ISRegistry instance to use for the given resource type
static ISRegistryInstanceGroup getInstanceGroup()
           
 Set<ISRegistryInstance> getRegistryInstancesForTypeAndScope(String type, org.gcube.common.core.scope.GCUBEScope scope)
          Gets the list of instances managing the given resource type in the specified GCUBEScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstanceGroup

public static ISRegistryInstanceGroup getInstanceGroup()

getRegistryInstancesForTypeAndScope

public Set<ISRegistryInstance> getRegistryInstancesForTypeAndScope(String type,
                                                                   org.gcube.common.core.scope.GCUBEScope scope)
                                                            throws ISRegistryLookup.NoRegistryAvailableException
Gets the list of instances managing the given resource type in the specified GCUBEScope

Parameters:
type -
scope -
Returns:
Throws:
ISRegistryLookup.NoRegistryAvailableException

addRegistry

public void addRegistry(ISRegistryInstance instance)
Adds a new ISRegistry instance to use for the given resource type

Parameters:
instance - the new instance


Copyright © 2013. All Rights Reserved.