01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.kernel.config;
17:
18: import org.apache.geronimo.kernel.repository.Artifact;
19: import org.apache.geronimo.gbean.AbstractName;
20:
21: import java.io.IOException;
22: import java.io.File;
23: import java.io.OutputStream;
24: import java.util.List;
25: import java.util.Set;
26: import java.net.MalformedURLException;
27: import java.net.URL;
28:
29: /**
30: * A non-functional configuration store that can be extended to be useful.
31: *
32: * @version $Rev: 566893 $ $Date: 2007-08-16 17:52:52 -0700 (Thu, 16 Aug 2007) $
33: */
34: public class NullConfigurationStore implements ConfigurationStore {
35: public boolean isInPlaceConfiguration(Artifact configId)
36: throws NoSuchConfigException, IOException {
37: return false;
38: }
39:
40: public void install(ConfigurationData configurationData)
41: throws IOException, InvalidConfigException {
42: }
43:
44: public void uninstall(Artifact configId)
45: throws NoSuchConfigException, IOException {
46: }
47:
48: public ConfigurationData loadConfiguration(Artifact configId)
49: throws NoSuchConfigException, IOException,
50: InvalidConfigException {
51: return null;
52: }
53:
54: public boolean containsConfiguration(Artifact configId) {
55: return false;
56: }
57:
58: public String getObjectName() {
59: return null;
60: }
61:
62: public AbstractName getAbstractName() {
63: return null;
64: }
65:
66: public List<ConfigurationInfo> listConfigurations() {
67: return null;
68: }
69:
70: public File createNewConfigurationDir(Artifact configId)
71: throws ConfigurationAlreadyExistsException {
72: return null;
73: }
74:
75: public Set<URL> resolve(Artifact configId, String moduleName,
76: String path) throws NoSuchConfigException,
77: MalformedURLException {
78: return null;
79: }
80:
81: public void exportConfiguration(Artifact configId,
82: OutputStream output) throws IOException,
83: NoSuchConfigException {
84: }
85: }
|