Exemple #1
0
 public AbstractMVCGroup(
     @Nonnull MVCGroupManager mvcGroupManager,
     @Nonnull MVCGroupConfiguration configuration,
     @Nullable String mvcId,
     @Nonnull Map<String, Object> members) {
   this.mvcGroupManager =
       requireNonNull(mvcGroupManager, "Argument 'mvcGroupManager' cannot be null");
   this.configuration = requireNonNull(configuration, "Argument 'configuration' cannot be null");
   this.mvcId =
       isBlank(mvcId) ? configuration.getMvcType() + "-" + UUID.randomUUID().toString() : mvcId;
   this.members.putAll(requireNonNull(members, "Argument 'members' cannot be null"));
   this.alive = true;
 }
Exemple #2
0
 @Nonnull
 @Override
 public String getMvcType() {
   return configuration.getMvcType();
 }