Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,16 @@
@FieldDefaults(level = AccessLevel.PROTECTED, makeFinal = true)
@ThreadSafe
public class MultiServiceManager<U> extends ServiceManager<U> implements IMultiServiceManager<U> {
Class<U> serviceType;
@Getter
IServiceRegistry<U> registry;

/**
* Constructs an instance of ASingleServiceManager with the specified service type.
*
* @param serviceType The class object representing the type of the service.
* Must not be {@code null}.
* @param registry The service registry to be used by this manager.
* Must not be {@code null}.
* @param registry The service registry to be used by this manager.
* Must not be {@code null}.
*/
public MultiServiceManager(@NotNull final Class<U> serviceType, @NotNull final IServiceRegistry<U> registry) {
this.serviceType = serviceType;
public MultiServiceManager(@NotNull final IServiceRegistry<U> registry) {
this.registry = registry;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,16 @@
@FieldDefaults(level = AccessLevel.PROTECTED, makeFinal = true)
@ThreadSafe
public class SingleServiceManager<U> extends ServiceManager<U> implements ISingleServiceManager<U> {
Class<U> serviceType;
@Getter
IServiceRegistry<U> registry;

/**
* Constructs an instance of ASingleServiceManager with the specified service type.
*
* @param serviceType The class object representing the type of the service.
* Must not be {@code null}.
* @param registry The service registry to be used by this manager.
* Must not be {@code null}.
* @param registry The service registry to be used by this manager.
* Must not be {@code null}.
*/
public SingleServiceManager(@NotNull final Class<U> serviceType, @NotNull final IServiceRegistry<U> registry) {
this.serviceType = serviceType;
public SingleServiceManager(@NotNull final IServiceRegistry<U> registry) {
this.registry = registry;
}

Expand Down
Loading