1 /**
2 *
3 * Copyright 2005 The Apache Software Foundation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * 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 */
17
18 package org.apache.geronimo.plugin.car;
19
20 import org.apache.geronimo.gbean.GAttributeInfo;
21 import org.apache.geronimo.gbean.GBeanData;
22 import org.apache.geronimo.gbean.GBeanInfo;
23 import org.apache.geronimo.gbean.GBeanInfoBuilder;
24 import org.apache.geronimo.gbean.GReferenceInfo;
25 import org.apache.geronimo.gbean.AbstractName;
26 import org.apache.geronimo.gbean.ReferencePatterns;
27 import org.apache.geronimo.kernel.config.ManageableAttributeStore;
28 import org.apache.geronimo.kernel.repository.Artifact;
29
30 import java.io.IOException;
31 import java.util.Collection;
32
33 /**
34 * @version $Rev: 428888 $ $Date: 2006-08-04 23:21:54 +0200 (ven., 04 août 2006) $
35 */
36 public class MavenAttributeStore
37 implements ManageableAttributeStore
38 {
39 public MavenAttributeStore() {
40 }
41
42 public Collection applyOverrides(Artifact configurationName, Collection datas, ClassLoader classLoader) {
43 return datas;
44 }
45
46 public void setValue(Artifact configurationName, AbstractName gbean, GAttributeInfo attribute, Object value) {
47 }
48
49 public void setReferencePatterns(Artifact configurationName, AbstractName gbean, GReferenceInfo reference, ReferencePatterns patterns) {
50 }
51
52 public void setShouldLoad(Artifact configurationName, AbstractName gbean, boolean load) {
53 }
54
55 public void addGBean(Artifact configurationName, GBeanData gbeanData) {
56 }
57
58 public void save() throws IOException {
59 }
60
61 public static final GBeanInfo GBEAN_INFO;
62
63 public static GBeanInfo getGBeanInfo() {
64 return GBEAN_INFO;
65 }
66
67 static {
68 GBeanInfoBuilder builder = GBeanInfoBuilder.createStatic(MavenAttributeStore.class);
69 builder.addInterface(ManageableAttributeStore.class);
70 GBEAN_INFO = builder.getBeanInfo();
71 }
72 }