blob: 7c07742e3878035f498ccc888a7a57f75f9b30b6 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.felix.dependencymanager.samples.dynamicdep.annot;
import aQute.bnd.annotation.metatype.Meta.AD;
import aQute.bnd.annotation.metatype.Meta.OCD;
/**
* This interface describes the configuration for our DynamicDependencyComponent component. We are using the bnd metatype
* annotations, allowing to configure our component from web console.
*
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
*/
@OCD(name = "Dynamic Dependency Configuration (annotation)",
description = "Declare here the configuration for the DynamicDependency component.")
public interface DynamicDependencyConfiguration {
@AD(description = "Enter the storage type to use",
deflt = "mapdb",
optionLabels = { "Map DB Storage implementation", "File Storage implementation" },
optionValues = { "mapdb", "file" })
String storageType();
@AD(description = "Specifies here is the storage dependency is required or not (if false, a null object will be used)", deflt = "true")
boolean storageRequired();
}