org.apache.felix.ipojo.api.composite
Class ExportedService

java.lang.Object
  extended by org.apache.felix.ipojo.api.composite.ExportedService
All Implemented Interfaces:
HandlerConfiguration

public class ExportedService
extends Object
implements HandlerConfiguration

Allows defining an exported service. A service export is the publication of service from the composite to the parent composite or global registry. The service export relies on a service dependency inside the composite. Matching services will be exported.

Author:
Felix Project Team

Constructor Summary
ExportedService()
           
 
Method Summary
 Element getElement()
          Gets the exported service metadata.
 ExportedService setAggregate(boolean agg)
          Sets the dependency cardinality.
 ExportedService setBindingPolicy(int policy)
          Sets the dependency binding policy.
 ExportedService setComparator(String cmp)
          Sets the dependency comparator.
 ExportedService setFilter(String filter)
          Sets the dependency filter.
 ExportedService setOptional(boolean opt)
          Sets the dependency optionality.
 ExportedService setSpecification(String spec)
          Sets the required service specification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportedService

public ExportedService()
Method Detail

getElement

public Element getElement()
Gets the exported service metadata.

Specified by:
getElement in interface HandlerConfiguration
Returns:
the 'provides' element describing the current dependency.

setSpecification

public ExportedService setSpecification(String spec)
Sets the required service specification.

Parameters:
spec - the specification
Returns:
the current exported service.

setFilter

public ExportedService setFilter(String filter)
Sets the dependency filter.

Parameters:
filter - the LDAP filter
Returns:
the current exported service

setOptional

public ExportedService setOptional(boolean opt)
Sets the dependency optionality.

Parameters:
opt - true to set the dependency to optional.
Returns:
the current exported service.

setAggregate

public ExportedService setAggregate(boolean agg)
Sets the dependency cardinality.

Parameters:
agg - true to set the dependency to aggregate.
Returns:
the current exported service.

setBindingPolicy

public ExportedService setBindingPolicy(int policy)
Sets the dependency binding policy.

Parameters:
policy - the binding policy
Returns:
the current exported service

setComparator

public ExportedService setComparator(String cmp)
Sets the dependency comparator.

Parameters:
cmp - the comparator class name
Returns:
the current exported service


Copyright © 2011 Apache Software Foundation. All Rights Reserved.