Should be more safe in most cases.
Example: setting name directly was wrong,
because name in base class was something else
then in the sub classes.
Not using the setter for maxActiveSessions,
because it will also call property change
listeners.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1175155 13f79535-47bb-0310-9956-
ffa450edef68
}
protected void clone(ClusterManagerBase copy) {
- copy.name = "Clone-from-" + getName();
- copy.cluster = getCluster();
+ copy.setName("Clone-from-" + getName());
+ copy.setCluster(getCluster());
copy.maxActiveSessions = getMaxActiveSessions();
- copy.notifyListenersOnReplication = isNotifyListenersOnReplication();
+ copy.setNotifyListenersOnReplication(isNotifyListenersOnReplication());
copy.setSessionAttributeFilter(getSessionAttributeFilter());
}