blob: cea52955b453271bd8f094a3bcdd8f3bcd96b866 [file] [log] [blame]
/**
* 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.aries.cdi.extension.mp.config;
import static org.apache.aries.cdi.extension.mp.config.MPConfigExtension.EXTENSION_NAME;
import static org.apache.aries.cdi.extension.mp.config.MPConfigExtension.EXTENSION_VERSION;
import static org.osgi.framework.Constants.SCOPE_PROTOTYPE;
import static org.osgi.framework.Constants.SERVICE_SCOPE;
import static org.osgi.framework.Constants.SERVICE_VENDOR;
import static org.osgi.service.cdi.CDIConstants.CDI_EXTENSION_PROPERTY;
import javax.enterprise.inject.spi.Extension;
import org.apache.geronimo.config.cdi.ConfigExtension;
import aQute.bnd.annotation.spi.ServiceProvider;
@ServiceProvider(
attribute = {
CDI_EXTENSION_PROPERTY + '=' + EXTENSION_NAME,
SERVICE_SCOPE + '=' + SCOPE_PROTOTYPE,
SERVICE_VENDOR + "=Apache Software Foundation",
"version:Version=" + EXTENSION_VERSION
},
uses = Extension.class,
value = Extension.class
)
public class MPConfigExtension extends ConfigExtension {
public final static String EXTENSION_NAME = "eclipse.microprofile.config";
public final static String EXTENSION_VERSION = "1.3.0";
}