avatar
singleton design pattern in Java Java
public class PDFIntegrationServiceImpl implements PDFIntegrationService {

  private static PDFIntegrationServiceImpl sInstance;

  public static PDFIntegrationService getInstance() {
      if (null == sInstance) {
          sInstance = new PDFIntegrationServiceImpl();
      }
      return sInstance;
  }
}
You need to login to do this manipulation!