001 /**
002 *
003 * Copyright 2005 The Apache Software Foundation
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 package org.apache.geronimo.plugin.car;
019
020 import org.apache.geronimo.gbean.GAttributeInfo;
021 import org.apache.geronimo.gbean.GBeanData;
022 import org.apache.geronimo.gbean.GBeanInfo;
023 import org.apache.geronimo.gbean.GBeanInfoBuilder;
024 import org.apache.geronimo.gbean.GReferenceInfo;
025 import org.apache.geronimo.gbean.AbstractName;
026 import org.apache.geronimo.gbean.ReferencePatterns;
027 import org.apache.geronimo.kernel.config.ManageableAttributeStore;
028 import org.apache.geronimo.kernel.repository.Artifact;
029
030 import java.io.IOException;
031 import java.util.Collection;
032
033 /**
034 * @version $Rev: 428888 $ $Date: 2006-08-04 23:21:54 +0200 (ven., 04 août 2006) $
035 */
036 public class MavenAttributeStore
037 implements ManageableAttributeStore
038 {
039 public MavenAttributeStore() {
040 }
041
042 public Collection applyOverrides(Artifact configurationName, Collection datas, ClassLoader classLoader) {
043 return datas;
044 }
045
046 public void setValue(Artifact configurationName, AbstractName gbean, GAttributeInfo attribute, Object value) {
047 }
048
049 public void setReferencePatterns(Artifact configurationName, AbstractName gbean, GReferenceInfo reference, ReferencePatterns patterns) {
050 }
051
052 public void setShouldLoad(Artifact configurationName, AbstractName gbean, boolean load) {
053 }
054
055 public void addGBean(Artifact configurationName, GBeanData gbeanData) {
056 }
057
058 public void save() throws IOException {
059 }
060
061 public static final GBeanInfo GBEAN_INFO;
062
063 public static GBeanInfo getGBeanInfo() {
064 return GBEAN_INFO;
065 }
066
067 static {
068 GBeanInfoBuilder builder = GBeanInfoBuilder.createStatic(MavenAttributeStore.class);
069 builder.addInterface(ManageableAttributeStore.class);
070 GBEAN_INFO = builder.getBeanInfo();
071 }
072 }