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

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

public class AvalonToYaafiContextMapper
extends java.lang.Object

Helper for converting Avalon Context of Fortress and Phoenix container to a standard Merlin context.

Author:
Siegfried Goeschl

Constructor Summary
AvalonToYaafiContextMapper(java.io.File tempRootDir, org.apache.avalon.framework.context.Context context, java.lang.ClassLoader classLoader)
          Constructor
 
Method Summary
 org.apache.avalon.framework.context.Context mapFrom(org.apache.avalon.framework.context.Context context, java.lang.String from)
          Map a Avalon context to the YAAFI (Merlin) incarnation whereas the following containers are supported merlin fortress phoenix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvalonToYaafiContextMapper

public AvalonToYaafiContextMapper(java.io.File tempRootDir,
                                  org.apache.avalon.framework.context.Context context,
                                  java.lang.ClassLoader classLoader)
Constructor

Parameters:
tempRootDir - current temp directory
context - the existing context
Method Detail

mapFrom

public org.apache.avalon.framework.context.Context mapFrom(org.apache.avalon.framework.context.Context context,
                                                           java.lang.String from)
                                                    throws org.apache.avalon.framework.context.ContextException
Map a Avalon context to the YAAFI (Merlin) incarnation whereas the following containers are supported

Parameters:
context - the Avalon context to map
from - Avalon container identifier
Returns:
the mapped Avalon context
Throws:
org.apache.avalon.framework.context.ContextException - Accessing the context failed


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