Пример #1
0
 private StatusReporter findStatusReporter(PooledDataSource pds, Document doc) {
   if (pds.getClass() == ComboPooledDataSource.class)
     return new CpdsStatusReporter((ComboPooledDataSource) pds, doc);
   else if (pds.getClass() == PoolBackedDataSource.class)
     return new PbdsStatusReporter((PoolBackedDataSource) pds, doc);
   else return new UnknownPdsStatusReporter(pds, doc);
 }
Пример #2
0
 UnknownPdsStatusReporter(PooledDataSource pds, Document doc) {
   this(pds.getClass().getName(), pds, doc);
 }