vendredi 29 octobre 2021

How to name common class among some classes named XXXHandler?

There ars many Handler class in my project. May be like:

class AHandler {
    BHandler bHandler;
    String getV();
    ...
}

class BHandler {
    String getV();
    ...
}

Now, I want to refact them.
Solution 1:

class HandlerHelper {
    String getV();
    BHandler bHandler;
}

Then, AHanlder and BHandler refer HandlerHelper.
How to name HandlerHelper? Thank you.

Aucun commentaire:

Enregistrer un commentaire