1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.impl.impex.xml; |
17 | |
|
18 | |
import java.util.ArrayList; |
19 | |
import java.util.Collections; |
20 | |
import java.util.List; |
21 | |
|
22 | |
import org.kuali.rice.core.framework.impex.xml.XmlExporter; |
23 | |
import org.kuali.rice.core.framework.impex.xml.XmlImpexRegistry; |
24 | |
import org.kuali.rice.core.framework.impex.xml.XmlLoader; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | 0 | public class XmlImpexRegistryImpl implements XmlImpexRegistry { |
33 | |
|
34 | 0 | private final List<XmlLoader> xmlLoaders = Collections.synchronizedList(new ArrayList<XmlLoader>()); |
35 | 0 | private final List<XmlExporter> xmlExporters = Collections.synchronizedList(new ArrayList<XmlExporter>()); |
36 | |
|
37 | |
@Override |
38 | |
public void registerLoader(XmlLoader xmlLoader) { |
39 | 0 | xmlLoaders.add(xmlLoader); |
40 | 0 | } |
41 | |
|
42 | |
@Override |
43 | |
public void registerExporter(XmlExporter exporter) { |
44 | 0 | xmlExporters.add(exporter); |
45 | 0 | } |
46 | |
|
47 | |
@Override |
48 | |
public boolean unregisterLoader(XmlLoader xmlLoader) { |
49 | 0 | return xmlLoaders.remove(xmlLoader); |
50 | |
} |
51 | |
|
52 | |
@Override |
53 | |
public boolean unregisterExporter(XmlExporter exporter) { |
54 | 0 | return xmlExporters.remove(exporter); |
55 | |
} |
56 | |
|
57 | |
@Override |
58 | |
public List<XmlLoader> getLoaders() { |
59 | 0 | return new ArrayList<XmlLoader>(xmlLoaders); |
60 | |
} |
61 | |
|
62 | |
@Override |
63 | |
public List<XmlExporter> getExporters() { |
64 | 0 | return new ArrayList<XmlExporter>(xmlExporters); |
65 | |
} |
66 | |
|
67 | |
} |