powermock.examples.dependencymanagement
Class DependencyManager

java.lang.Object
  extended by powermock.examples.dependencymanagement.DependencyManager

public final class DependencyManager
extends Object

This is a simple example of a factory class that provides dependencies that are shared by many classes (dependency lookup pattern). This approach is quite common when dependency injection is not used.


Method Summary
static DependencyManager getInstance()
           
 MyService getMyService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DependencyManager getInstance()

getMyService

public MyService getMyService()


Copyright © 2007-2012. All Rights Reserved.