Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (c) OSGi Alliance (2008, 2010). 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
   *
   *      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.osgi.service.blueprint.reflect;
 
 import java.util.List;

Metadata for a service to be registered by the Blueprint Container when enabled.

This is specified by the service element.

Version:
$Id: 00e0db1fed7a4a808fa0ad45f9116b47ca38db6f $
ThreadSafe:
 
 public interface ServiceMetadata extends ComponentMetadata {

Do not auto-detect types for advertised service interfaces

See also:
getAutoExport()
 
 	static final int		AUTO_EXPORT_DISABLED		= 1;

Advertise all Java interfaces implemented by the component instance type as service interfaces.

See also:
getAutoExport()
 
 	static final int		AUTO_EXPORT_INTERFACES		= 2;

Advertise all Java classes in the hierarchy of the component instance type as service interfaces.

See also:
getAutoExport()
 
 	static final int		AUTO_EXPORT_CLASS_HIERARCHY	= 3;

Advertise all Java classes and interfaces in the component instance type as service interfaces.

See also:
getAutoExport()
 
 	static final int	AUTO_EXPORT_ALL_CLASSES		= 4;

Return the Metadata for the component to be exported as a service. This is specified inline or via the ref attribute of the service.

Returns:
The Metadata for the component to be exported as a service.
 
Return the type names of the interfaces that the service should be advertised as supporting. This is specified in the interface attribute or child interfaces element of the service.

Returns:
An immutable List of String for the type names of the interfaces that the service should be advertised as supporting. The List is empty if using auto-export or no interface names are specified for the service.
 
Return the auto-export mode for the service. This is specified by the auto-export attribute of the service.

 
Return the user declared properties to be advertised with the service. This is specified by the service-properties element of the service.

Returns:
An immutable List of MapEntry objects for the user declared properties to be advertised with the service. The List is empty if no service properties are specified for the service.
Return the ranking value to use when advertising the service. If the ranking value is zero, the service must be registered without a service.ranking service property. This is specified by the ranking attribute of the service.

Returns:
The ranking value to use when advertising the service.
	int getRanking();

Return the registration listeners to be notified when the service is registered and unregistered with the framework. This is specified by the registration-listener elements of the service.

Returns:
An immutable Collection of RegistrationListener objects to be notified when the service is registered and unregistered with the framework. The Collection is empty if no registration listeners are specified for the service.
New to GrepCode? Check out our FAQ X