TraitObjectScanner

scalus.cardano.ledger.utils.TraitObjectScanner

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def findImplementors[T : ClassTag](packageName: String): Set[T]

Finds all Scala top level objects implementing the specified trait in the given package.

Finds all Scala top level objects implementing the specified trait in the given package.

Type parameters

T

The trait type to search for

Value parameters

packageName

The package to search (e.g., "com.example.services")

Attributes

Returns

A map of simple class names (without $) to instances of the objects implementing the trait