org.apache.felix.ipojo.annotations
Annotation Type Provides


@Target(value=TYPE)
public @interface Provides

This annotation declares that the component instances will provide a service.

Author:
Felix Project Team

Optional Element Summary
 StaticServiceProperty[] properties
          Allows adding static properties to the service.
 Class[] specifications
          Set the provided specifications.
 String strategy
          Set the service object creation strategy.
 

specifications

public abstract Class[] specifications
Set the provided specifications. Default : all implemented interfaces

Default:
{}

strategy

public abstract String strategy
Set the service object creation strategy. Two value are possible: SINGLETON, SERVICE, METHOD, INSTANCE or the strategy class name. SERVICE means OSGi Service Factory. METHOD delegates the creation to the factory-method of the component INSTANCE creates one service object per requiring instance for other strategies, specify the qualified name of the CreationStrategy class. Default : SINGLETON

Default:
"SINGLETON"

properties

public abstract StaticServiceProperty[] properties
Allows adding static properties to the service. Nested properties are static service properties, so must contain the name and the value as they are not attached to a field. The array contains StaticServiceProperty elements. Default : No service properties

Default:
{}


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.