IT:AD:Patterns:Naming Strategies

A good name is worth its weight in …Megabytes.

Consider using the following:

  • xxxProvider: something that provides something – but doesn't handle. Usually expects a single argument.
    • Examples:
      • ResourceProvider
  • xxxHandler: whereas a Provider only hands out data, a handler handles incoming data.
    • Examples:
      • POXHttpHandler: it recieves POX requests, and hands back POX responses.
  • xxxFactory: creates a new (simple) object and sets some of its parameters.
  • xxxBuilder: create composite objects.
    • Example:
      • InvoiceBuilder: as it builds the new invoice with a set of child line items.