org.apache.fulcrum.yaafi.framework.context
Class AvalonToYaafiContextMapper
java.lang.Object
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 |
AvalonToYaafiContextMapper
public AvalonToYaafiContextMapper(java.io.File tempRootDir,
org.apache.avalon.framework.context.Context context,
java.lang.ClassLoader classLoader)
- Constructor
- Parameters:
tempRootDir
- current temp directorycontext
- the existing context
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 mapfrom
- Avalon container identifier
- Returns:
- the mapped Avalon context
- Throws:
org.apache.avalon.framework.context.ContextException
- Accessing the context failed
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.