Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) OSGi Alliance (2011). All Rights Reserved.
  * 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
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.osgi.service.component.annotations;

Configuration Policy for the Component annotation.

Controls whether component configurations must be satisfied depending on the presence of a corresponding Configuration object in the OSGi Configuration Admin service. A corresponding configuration is a Configuration object where the PID is the name of the component.

$Id: 68099d3faefea9ab0eefca83d357dee0fc148fca $
public enum ConfigurationPolicy {
Use the corresponding Configuration object if present but allow the component to be satisfied even if the corresponding Configuration object is not present.

There must be a corresponding Configuration object for the component configuration to become satisfied.

Always allow the component configuration to be satisfied and do not use the corresponding Configuration object even if it is present.
	private final String	value;
		this. = value;
	public String toString() {
		return ;
New to GrepCode? Check out our FAQ X