org.apache.aries.blueprint.di
Class DependentComponentFactoryRecipe

java.lang.Object
  extended by org.apache.aries.blueprint.di.AbstractRecipe
      extended by org.apache.aries.blueprint.di.ComponentFactoryRecipe<DependentComponentFactoryMetadata>
          extended by org.apache.aries.blueprint.di.DependentComponentFactoryRecipe
All Implemented Interfaces:
SatisfiableRecipe, Recipe, DependentComponentFactoryMetadata.SatisfactionCallback

public class DependentComponentFactoryRecipe
extends ComponentFactoryRecipe<DependentComponentFactoryMetadata>
implements SatisfiableRecipe, DependentComponentFactoryMetadata.SatisfactionCallback

Extends ComponentFactoryRecipe to support the dependency management (SatisfiableRecipe) for custom bean managers (DependentComponentFactoryMetadata instances in this case).


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.aries.blueprint.container.SatisfiableRecipe
SatisfiableRecipe.SatisfactionListener
 
Field Summary
 
Fields inherited from class org.apache.aries.blueprint.di.AbstractRecipe
name, prototype
 
Constructor Summary
DependentComponentFactoryRecipe(java.lang.String name, DependentComponentFactoryMetadata metadata, ExtendedBlueprintContainer container, java.util.List<Recipe> dependencies)
           
 
Method Summary
 java.lang.String getOsgiFilter()
           
 boolean isSatisfied()
           
 void notifyChanged()
          Alert the container that the satisfaction status has changed.
 void start(SatisfiableRecipe.SatisfactionListener listener)
           
 void stop()
           
 
Methods inherited from class org.apache.aries.blueprint.di.ComponentFactoryRecipe
destroy, getDependencies, getMetadata, internalCreate
 
Methods inherited from class org.apache.aries.blueprint.di.AbstractRecipe
addPartialObject, convert, convert, create, getConstructorDependencies, getName, isPrototype, loadClass, loadType, loadType, setPrototype, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.aries.blueprint.di.Recipe
create, destroy, getConstructorDependencies, getDependencies, getName
 

Constructor Detail

DependentComponentFactoryRecipe

public DependentComponentFactoryRecipe(java.lang.String name,
                                       DependentComponentFactoryMetadata metadata,
                                       ExtendedBlueprintContainer container,
                                       java.util.List<Recipe> dependencies)
Method Detail

getOsgiFilter

public java.lang.String getOsgiFilter()
Specified by:
getOsgiFilter in interface SatisfiableRecipe

isSatisfied

public boolean isSatisfied()
Specified by:
isSatisfied in interface SatisfiableRecipe

start

public void start(SatisfiableRecipe.SatisfactionListener listener)
Specified by:
start in interface SatisfiableRecipe

stop

public void stop()
Specified by:
stop in interface SatisfiableRecipe

notifyChanged

public void notifyChanged()
Description copied from interface: DependentComponentFactoryMetadata.SatisfactionCallback
Alert the container that the satisfaction status has changed. isSatisfied() should reflect this.

Specified by:
notifyChanged in interface DependentComponentFactoryMetadata.SatisfactionCallback


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