commons-dev mailing list archives

Hello!
Sorry for being late, but I have had an appointment day with one of our
customers.
> public abstract class Backup implements IOOperation {
>
> protected Backup(final FuPolicy policy) {
> And two implementations:
>
> public class NoBackup extends Backup {
> public class SimpleBackup extends Backup {
The only thing I do not understand is why you need the "policy" if you
extend the Backup. The derived classes are the policy.
Else you should do somethink like NoBackupPolicy and SimpleBackupPolicy
which will be passed to Backup.
But I think extending Backup (to implement different policies) is good
enough and then you could drop the policy, no?
Ciao,
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org