org.apache.fulcrum.yaafi.framework.context
Class AvalonToYaafiContextMapper
java.lang.Object
org.apache.fulcrum.yaafi.framework.context.AvalonToYaafiContextMapper
public class AvalonToYaafiContextMapper
- extends Object
Helper for converting Avalon Context of Fortress and Phoenix
container to a standard Merlin context.
- Author:
- Siegfried Goeschl
Method Summary |
org.apache.avalon.framework.context.Context |
mapFrom(org.apache.avalon.framework.context.Context context,
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(File tempRootDir,
org.apache.avalon.framework.context.Context context,
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,
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 © 2004-2012 The Apache Software Foundation. All Rights Reserved.