/** * Creates a temporary ContainerConfig object that optionally contains a * copy of the current configuration. * * If you subclass {@link BasicContainerConfig} and you change its * internals, you must generally override this method to generate an object * of the same type as your subclass, and to fill its contents correctly. * * @param copyValues Whether the current configuration should be copied. * @return A new ContainerConfig object of the appropriate type. */ protected BasicContainerConfig getTemporaryConfig(boolean copyValues) { BasicContainerConfig tmp = new BasicContainerConfig(); if (copyValues) { tmp.config = deepCopyConfig(config); } return tmp; }
/** * Creates a temporary ContainerConfig object that optionally contains a * copy of the current configuration. * * If you subclass {@link BasicContainerConfig} and you change its * internals, you must generally override this method to generate an object * of the same type as your subclass, and to fill its contents correctly. * * @param copyValues Whether the current configuration should be copied. * @return A new ContainerConfig object of the appropriate type. */ protected BasicContainerConfig getTemporaryConfig(boolean copyValues) { BasicContainerConfig tmp = new BasicContainerConfig(); if (copyValues) { tmp.config = deepCopyConfig(config); } return tmp; }
/** * Creates a temporary ContainerConfig object that optionally contains a * copy of the current configuration. * * If you subclass {@link BasicContainerConfig} and you change its * internals, you must generally override this method to generate an object * of the same type as your subclass, and to fill its contents correctly. * * @param copyValues Whether the current configuration should be copied. * @return A new ContainerConfig object of the appropriate type. */ protected BasicContainerConfig getTemporaryConfig(boolean copyValues) { BasicContainerConfig tmp = new BasicContainerConfig(); if (copyValues) { tmp.config = deepCopyConfig(config); } return tmp; }