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