View Javadoc

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