/** * Configure registration base settings. * @param registration the registration */ protected void configure(Registration.Dynamic registration) { Assert.state(registration != null, "Registration is null. Was something already registered for name=[" + this.name + "]?"); registration.setAsyncSupported(this.asyncSupported); if (!this.initParameters.isEmpty()) { registration.setInitParameters(this.initParameters); } }
/** * Configure registration base settings. * @param registration the registration */ protected void configure(Registration.Dynamic registration) { Assert.state(registration != null, "Registration is null. Was something already registered for name=[" + this.name + "]?"); registration.setAsyncSupported(this.asyncSupported); if (this.initParameters.size() > 0) { registration.setInitParameters(this.initParameters); } }