package com.lezhnin.yadi.api;

public interface ServiceRegistry extends ServiceLocator {

    ServiceRegistry register(ServiceSupplier<?> serviceSupplier);
}

package com.lezhnin.yadi.api;

public interface ServiceRegistry extends ServiceLocator {

    ServiceRegistry register(ServiceDefinition<?> serviceDefinition);
}

make ServiceRegistry accept ServiceDefinition