1 | package com.mysql.management.util; |
2 | |
3 | import java.io.File; |
4 | |
5 | public final class Utils { |
6 | private Files files; |
7 | |
8 | private Streams streams; |
9 | |
10 | private Shell.Factory shellFactory; |
11 | |
12 | private Threads threads; |
13 | |
14 | private Str str; |
15 | |
16 | public Utils() { |
17 | this.shellFactory = new Shell.Factory(); |
18 | this.str = new Str(); |
19 | this.streams = new Streams(); |
20 | this.threads = new Threads(); |
21 | this.files = new Files(shellFactory, File.separatorChar, streams); |
22 | } |
23 | |
24 | public Utils(Files files, Shell.Factory shellFactory, Streams streams, |
25 | Threads threads, Str str) { |
26 | this.files = files; |
27 | this.shellFactory = shellFactory; |
28 | this.str = str; |
29 | this.streams = streams; |
30 | this.threads = threads; |
31 | } |
32 | |
33 | public Files files() { |
34 | return files; |
35 | } |
36 | |
37 | public Streams streams() { |
38 | return streams; |
39 | } |
40 | |
41 | public Shell.Factory shellFactory() { |
42 | return shellFactory; |
43 | } |
44 | |
45 | public Threads threads() { |
46 | return threads; |
47 | } |
48 | |
49 | public Str str() { |
50 | return str; |
51 | } |
52 | |
53 | public void setFiles(Files files) { |
54 | this.files = files; |
55 | } |
56 | } |