com.springsource.util.common
Interface SetProvider<T>

Type Parameters:
T - type of elements of set
All Known Implementing Classes:
ServiceRegistryProvider, StaticSetProvider

public interface SetProvider<T>

An interface for use when a provider of some object is required but the types of implementation come from elsewhere, e.g. OSGi and those types can't be on the using systems classpath.

Concurrent Semantics
Implementations must be thread safe.

Since:
1.5
Author:
Christopher Frost

Method Summary
 java.util.Set<T> getSet()
          Implementations of this must provide thread safe sets for iteration.
 

Method Detail

getSet

java.util.Set<T> getSet()
Implementations of this must provide thread safe sets for iteration. e.g. This can be achieved by either returning a new set or one that implements thread safety with internal locking.

Returns:
the Set of service objects