1
2
3
4
5
6
7
8
9
10
11 package psiprobe.tools.logging.commons;
12
13 import java.util.List;
14
15 import psiprobe.tools.logging.DefaultAccessor;
16 import psiprobe.tools.logging.LogDestination;
17
18
19
20
21 public class CommonsLoggerAccessor extends DefaultAccessor {
22
23
24
25
26
27
28 public List<LogDestination> getDestinations() {
29 GetAllDestinationsVisitor visitor = new GetAllDestinationsVisitor();
30 visitor.setTarget(getTarget());
31 visitor.setApplication(getApplication());
32 visitor.visit();
33 return visitor.getDestinations();
34 }
35
36
37
38
39
40
41
42
43 public LogDestination getDestination(String logIndex) {
44 GetSingleDestinationVisitor visitor = new GetSingleDestinationVisitor(logIndex);
45 visitor.setTarget(getTarget());
46 visitor.setApplication(getApplication());
47 visitor.visit();
48 return visitor.getDestination();
49 }
50
51 }