org.apache.aries.blueprint.di
Class MapRecipe

java.lang.Object
  extended by org.apache.aries.blueprint.di.AbstractRecipe
      extended by org.apache.aries.blueprint.di.MapRecipe
All Implemented Interfaces:
Recipe

public class MapRecipe
extends AbstractRecipe

Version:
$Rev: 1361780 $ $Date: 2012-07-15 21:11:25 +0100 (Sun, 15 Jul 2012) $

Nested Class Summary
static class MapRecipe.DummyDictionaryAsMap
           
 
Field Summary
 
Fields inherited from class org.apache.aries.blueprint.di.AbstractRecipe
name, prototype
 
Constructor Summary
MapRecipe(String name, Class<?> type, Object keyType, Object valueType)
           
 
Method Summary
 List<Recipe> getDependencies()
          Get the list of nested recipes, i.e.
static Class<?> getMap(Class<?> type)
           
protected  Object internalCreate()
           
 void put(Recipe key, Recipe value)
           
 void putAll(Map<Recipe,Recipe> map)
           
protected  org.osgi.service.blueprint.container.ReifiedType workOutConversionType(Recipe entry, org.osgi.service.blueprint.container.ReifiedType defaultType)
           
 
Methods inherited from class org.apache.aries.blueprint.di.AbstractRecipe
addPartialObject, canConvert, convert, convert, create, destroy, 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
 

Constructor Detail

MapRecipe

public MapRecipe(String name,
                 Class<?> type,
                 Object keyType,
                 Object valueType)
Method Detail

getDependencies

public List<Recipe> getDependencies()
Description copied from interface: Recipe
Get the list of nested recipes, i.e. all dependencies including constructor dependencies.

Returns:
a list of dependencies

internalCreate

protected Object internalCreate()
                         throws org.osgi.service.blueprint.container.ComponentDefinitionException
Specified by:
internalCreate in class AbstractRecipe
Throws:
org.osgi.service.blueprint.container.ComponentDefinitionException

workOutConversionType

protected org.osgi.service.blueprint.container.ReifiedType workOutConversionType(Recipe entry,
                                                                                 org.osgi.service.blueprint.container.ReifiedType defaultType)

put

public void put(Recipe key,
                Recipe value)

putAll

public void putAll(Map<Recipe,Recipe> map)

getMap

public static Class<?> getMap(Class<?> type)


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