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
 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"


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