Interface AsDelegate


  • public interface AsDelegate
    Implementation of this interface are responsible to find in the runtime all instances of DCI roles with the given type.
    Author:
    Fabrizio Giudici
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> java.util.Collection<T> as​(java.lang.Class<? extends T> roleType)
      Returns all role instances of the given type.
    • Method Detail

      • as

        @Nonnull
        <T> java.util.Collection<T> as​(@Nonnull
                                       java.lang.Class<? extends T> roleType)
        Returns all role instances of the given type.
        Type Parameters:
        T - the static type of the role
        Parameters:
        roleType - the dynamic type of the role
        Returns:
        a collection of roles