1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 package org.astrogrid.filemanager.server ;
30
31 import org.astrogrid.filemanager.common.FileManager;
32 import org.astrogrid.filemanager.common.FileManagerMock;
33 import org.astrogrid.filemanager.common.FileManagerConfig;
34 import org.astrogrid.filemanager.common.FileManagerStore;
35 import org.astrogrid.filemanager.common.ivorn.FileManagerIvornFactory;
36
37 import org.astrogrid.filestore.resolver.FileStoreDelegateResolver;
38 import org.astrogrid.filestore.resolver.FileStoreDelegateResolverImpl;
39
40 /***
41 * The public interface for a file manager service.
42 *
43 */
44 public class FileManagerImpl
45 extends FileManagerMock
46 implements FileManager
47 {
48
49 /***
50 * Public constructor, using the default configuration, identifier factory and resolver.
51 *
52 */
53 public FileManagerImpl()
54 {
55 this(
56 new FileManagerConfigImpl(),
57 new FileManagerStoreImpl(),
58 new FileManagerIvornFactory(),
59 new FileStoreDelegateResolverImpl()
60 );
61 }
62
63 /***
64 * Public constructor, using a custom configuration, identifier factory and resolver.
65 * @param config The local file manager configuration.
66 * @param store The local file manager store.
67 * @param factory A factory for creating resource identifiers.
68 * @param resolver A resolver to locate filestores.
69 *
70 */
71 public FileManagerImpl(
72 FileManagerConfig config,
73 FileManagerStore store,
74 FileManagerIvornFactory factory,
75 FileStoreDelegateResolver resolver
76 )
77 {
78 super(
79 config,
80 store,
81 factory,
82 resolver
83 );
84 }
85
86 }