add

public BoundedContextBuilder add<I, E extends Entity<I, ? extends Object>>(Class<E> entityClass)

Adds the default repository for the passed entity class to the repository registration list.


public BoundedContextBuilder add(Repository<? extends Object, ? extends Object> repository)

Adds the passed repository to the registration list which will be processed after the Bounded Context is created.