org.apache.aries.blueprint.ext
Interface DependentComponentFactoryMetadata

All Superinterfaces:
ComponentFactoryMetadata, ComponentMetadata, Metadata, NonNullMetadata, Target

public interface DependentComponentFactoryMetadata
extends ComponentFactoryMetadata

Metadata for custom components that need to plug in to the Blueprint container lifecycle for beans


Nested Class Summary
static interface DependentComponentFactoryMetadata.SatisfactionCallback
          Interface that allows to notify the container when the dependencies of the component become satisfied or unsatified.
 
Field Summary
 
Fields inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata
ACTIVATION_EAGER, ACTIVATION_LAZY
 
Method Summary
 java.lang.String getDependencyDescriptor()
          Return a string representation of the dependencies of this component.
 boolean isSatisfied()
          Are all dependencies of this component satisfied?
 void startTracking(DependentComponentFactoryMetadata.SatisfactionCallback observer)
          Start tracking the dependencies for this component.
 void stopTracking()
          Stop tracking the dependencies for this component.
 
Methods inherited from interface org.apache.aries.blueprint.ext.ComponentFactoryMetadata
create, destroy, init
 
Methods inherited from interface org.osgi.service.blueprint.reflect.ComponentMetadata
getActivation, getDependsOn, getId
 

Method Detail

startTracking

void startTracking(DependentComponentFactoryMetadata.SatisfactionCallback observer)
Start tracking the dependencies for this component.

Parameters:
observer - The container callback for alerting the container of status changes

stopTracking

void stopTracking()
Stop tracking the dependencies for this component.


getDependencyDescriptor

java.lang.String getDependencyDescriptor()
Return a string representation of the dependencies of this component. This will be used in diagnostics as well as the GRACE_PERIOD event.

Returns:

isSatisfied

boolean isSatisfied()
Are all dependencies of this component satisfied?

Returns:


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.