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


@Target(value=TYPE)
public @interface Component

This annotation declares a component. This annotation is mandatory to declares an iPOJO component.

Author:
Felix Project Team

Optional Element Summary
 boolean architecture
          Enable / Disable the architecture exposition.
 String factory_method
          Deprecated. now is called factoryMethod.
 String factoryMethod
          Set the factory-method, if the pojo has to be created from a static method.
 boolean immediate
          Set if the component is immediate.
 String managedservice
          Set the Managed Service PID.
 String name
          Set the component type name.
 boolean propagation
          Set if the component must propagate received configuration to provided services.
 boolean public_factory
          Deprecated. renamed to publicFactory.
 boolean publicFactory
          Set if the component type is public.
 String version
          Set the version of the component type.
 

public_factory

public abstract boolean public_factory
Deprecated. renamed to publicFactory.

Set if the component type is public. Default: true

Default:
true

publicFactory

public abstract boolean publicFactory
Set if the component type is public. Default: true

Default:
true

name

public abstract String name
Set the component type name. Default : implementation class name.

Default:
""

architecture

public abstract boolean architecture
Enable / Disable the architecture exposition. Default : false

Default:
false

immediate

public abstract boolean immediate
Set if the component is immediate. Default : false

Default:
false

propagation

public abstract boolean propagation
Set if the component must propagate received configuration to provided services. default: false

Default:
false

managedservice

public abstract String managedservice
Set the Managed Service PID. default no PID (i.e. the managed service will not be exposed).

Default:
""

factory_method

public abstract String factory_method
Deprecated. now is called factoryMethod.

Set the factory-method, if the pojo has to be created from a static method. The specified method must be a static method and return a pojo object. By default, iPOJO uses the 'regular' constructor.

Default:
""

factoryMethod

public abstract String factoryMethod
Set the factory-method, if the pojo has to be created from a static method. The specified method must be a static method and return a pojo object. By default, iPOJO uses the 'regular' constructor.

Default:
""

version

public abstract String version
Set the version of the component type.

Default:
""


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