Class Discoverer<T extends Replaceable>

java.lang.Object
tools.mdsd.mocore.framework.discovery.Discoverer<T>
Type Parameters:
T - the type of Replaceable the discoverer provides

public abstract class Discoverer<T extends Replaceable> extends Object
Represents a provider for a specific type of Replaceable instances.
  • Constructor Details

    • Discoverer

      protected Discoverer(Set<T> discoveries, Class<T> discoveryType)
      Creates a new discoverer instance.
      Parameters:
      discoveries - the Replaceable instances the discoverer contains and provides
      discoveryType - the type of the Replaceable instances
  • Method Details

    • getDiscoveries

      public Set<T> getDiscoveries()
      Gets the Replaceable instances the discoverer contains.
      Returns:
      the contained Replaceable instances.
    • getDiscoveryType

      public Class<T> getDiscoveryType()
      Gets the type of Replaceable instances the discoverer contains.
      Returns:
      the type of the contained Replaceable instances.