org.apache.fulcrum.yaafi.framework.context
Class YaafiToAvalonContextMapper

java.lang.Object
  extended by org.apache.fulcrum.yaafi.framework.context.YaafiToAvalonContextMapper

public class YaafiToAvalonContextMapper
extends java.lang.Object

Helper for converting a YAAFI context to a different container

Author:
Siegfried Goeschl

Constructor Summary
YaafiToAvalonContextMapper(java.lang.String urnAvalonName, java.lang.ClassLoader urnAvalonClassLoader)
          Constructor
 
Method Summary
 java.lang.ClassLoader getUrnAvalonClassLoader()
           
 java.lang.String getUrnAvalonName()
           
 org.apache.avalon.framework.context.DefaultContext mapTo(org.apache.avalon.framework.context.Context context, java.lang.String to)
          Map a YAAFI (Merlin) context to a different incarnation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YaafiToAvalonContextMapper

public YaafiToAvalonContextMapper(java.lang.String urnAvalonName,
                                  java.lang.ClassLoader urnAvalonClassLoader)
Constructor

Parameters:
urnAvalonName - the name of the component for which we create the context
urnAvalonClassLoader - the classloader of the component
Method Detail

getUrnAvalonClassLoader

public java.lang.ClassLoader getUrnAvalonClassLoader()
Returns:
Returns the urnAvalonClassLoader.

getUrnAvalonName

public java.lang.String getUrnAvalonName()
Returns:
Returns the urnAvalonName.

mapTo

public org.apache.avalon.framework.context.DefaultContext mapTo(org.apache.avalon.framework.context.Context context,
                                                                java.lang.String to)
                                                         throws org.apache.avalon.framework.context.ContextException
Map a YAAFI (Merlin) context to a different incarnation

Parameters:
context - the context to be mapped
to - the target Avalon container
Returns:
the mapped context
Throws:
org.apache.avalon.framework.context.ContextException - accessing the context failed


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.