01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.geronimo.mavenplugins.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: * ???
35: *
36: * @version $Rev: 609072 $ $Date: 2008-01-04 16:47:14 -0800 (Fri, 04 Jan 2008) $
37: */
38: public class MavenAttributeStore implements ManageableAttributeStore {
39: public MavenAttributeStore() {
40: }
41:
42: public Collection applyOverrides(Artifact configurationName,
43: Collection<GBeanData> datas, ClassLoader classLoader) {
44: return datas;
45: }
46:
47: public void setValue(Artifact configurationName,
48: AbstractName gbean, GAttributeInfo attribute, Object value,
49: ClassLoader classLoader) {
50: }
51:
52: public void setReferencePatterns(Artifact configurationName,
53: AbstractName gbean, GReferenceInfo reference,
54: ReferencePatterns patterns) {
55: }
56:
57: public void setShouldLoad(Artifact configurationName,
58: AbstractName gbean, boolean load) {
59: }
60:
61: public void addGBean(Artifact configurationName,
62: GBeanData gbeanData, ClassLoader classLoader) {
63: }
64:
65: public void save() throws IOException {
66: }
67:
68: public static final GBeanInfo GBEAN_INFO;
69:
70: public static GBeanInfo getGBeanInfo() {
71: return GBEAN_INFO;
72: }
73:
74: static {
75: GBeanInfoBuilder builder = GBeanInfoBuilder
76: .createStatic(MavenAttributeStore.class);
77: builder.addInterface(ManageableAttributeStore.class);
78: GBEAN_INFO = builder.getBeanInfo();
79: }
80: }
|