/**
 *
 * Copyright 2005 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.apache.geronimo.plugin.packaging;

import java.io.IOException;
import javax.management.ObjectName;
import javax.management.MalformedObjectNameException;

import org.apache.geronimo.gbean.GAttributeInfo;
import org.apache.geronimo.gbean.GBeanInfo;
import org.apache.geronimo.gbean.GBeanInfoBuilder;
import org.apache.geronimo.kernel.config.ManageableAttributeStore;

/**
 * @version $Rev$ $Date$
 */
public class MavenAttributeStore implements ManageableAttributeStore {
    private final String objectName;

    public MavenAttributeStore(String objectName) {
        this.objectName = objectName;
    }

    public String getObjectName() {
        return objectName;
    }

    public Object getValue(String configurationName, ObjectName gbean, GAttributeInfo attribute) {
        return null;
    }

    public void setValue(String configurationName, ObjectName gbean, GAttributeInfo attribute, Object value) {
    }

    public void save() throws IOException {
    }

    public static final GBeanInfo GBEAN_INFO;

    public static GBeanInfo getGBeanInfo() {
        return GBEAN_INFO;
    }

    static {
        GBeanInfoBuilder builder = new GBeanInfoBuilder(MavenAttributeStore.class);
        builder.addAttribute("objectName", String.class, false);
        builder.addInterface(ManageableAttributeStore.class);
        builder.setConstructor(new String[] {"objectName"});
        GBEAN_INFO = builder.getBeanInfo();
    }
}

/**
 *
 * Copyright 2005 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.apache.geronimo.plugin.packaging;

import java.io.IOException;
import javax.management.ObjectName;

import org.apache.geronimo.gbean.GAttributeInfo;
import org.apache.geronimo.gbean.GBeanInfo;
import org.apache.geronimo.gbean.GBeanInfoBuilder;
import org.apache.geronimo.kernel.config.ManageableAttributeStore;

/**
 * @version $Rev$ $Date$
 */
public class MavenAttributeStore implements ManageableAttributeStore {
    private final String objectName;

    public MavenAttributeStore(String objectName) {
        this.objectName = objectName;
    }

    public String getObjectName() {
        return objectName;
    }

    public Object getValue(String configurationName, ObjectName gbean, GAttributeInfo attribute) {
        return null;
    }

    public void setValue(String configurationName, ObjectName gbean, GAttributeInfo attribute, Object value) {
    }

    public void save() throws IOException {
    }

    public static final GBeanInfo GBEAN_INFO;

    public static GBeanInfo getGBeanInfo() {
        return GBEAN_INFO;
    }

    static {
        GBeanInfoBuilder builder = new GBeanInfoBuilder(MavenAttributeStore.class);
        builder.addAttribute("objectName", String.class, false);
        builder.addInterface(ManageableAttributeStore.class);
        builder.setConstructor(new String[] {"objectName"});
        GBEAN_INFO = builder.getBeanInfo();
    }
}

clean up import