code: public void setContextLifecycleListeners(
  			Collection<? extends LifecycleListener> contextLifecycleListeners) {
  		Assert.notNull(contextLifecycleListeners,
  				"ContextLifecycleListeners must not be null");
  		this.contextLifecycleListeners = new ArrayList<>(contextLifecycleListeners);
  	}
docs: Set {@link LifecycleListener}s that should be applied to the Tomcat
  {@link Context}. Calling this method will replace any existing listeners.
  @param contextLifecycleListeners the listeners to set