1 package ch.qos.logback.classic.spi.special;
2
3 import ch.qos.logback.classic.spi.CPDCSpecial;
4 import ch.qos.logback.classic.spi.PackagingDataCalculator;
5 import ch.qos.logback.classic.spi.ThrowableProxy;
6
7
8 public class CPDCSpecialImpl implements CPDCSpecial {
9
10
11 Throwable throwable;
12 ThrowableProxy throwableProxy;
13
14 public void doTest() {
15 nesting();
16 }
17
18 private void nesting() {
19 throwable = new Throwable("x");
20 throwableProxy = new ThrowableProxy(throwable);
21 PackagingDataCalculator pdc = new PackagingDataCalculator();
22 pdc.calculate(throwableProxy.getThrowableDataPointArray());
23 }
24
25 public Throwable getThrowable() {
26 return throwable;
27 }
28 public ThrowableProxy getThrowableProxy() {
29 return throwableProxy;
30 }
31 }