Skip to content

Commit

Permalink
Utilize factory method pattern instead of class. fixes Azure#99
Browse files Browse the repository at this point in the history
class XxxService should have two methods:

static XxxContract create();
static XxxContract create(Configuration config);

As a class it will not implement the XxxContract interface.

As a class it will not have public constructors.

To avoid confusion it will have a private default
constructor (this is the Java way of doing "static class")
  • Loading branch information
lodejard committed Nov 22, 2011
1 parent a5edbf3 commit 5749571
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 509 deletions.
Loading

0 comments on commit 5749571

Please sign in to comment.