Class AvalonToYaafiContextMapper
java.lang.Object
org.apache.fulcrum.yaafi.framework.context.AvalonToYaafiContextMapper
Helper for converting Avalon Context of Fortress and Phoenix
container to a standard Merlin context.
- Author:
- Siegfried Goeschl
-
Constructor Summary
ConstructorsConstructorDescriptionAvalonToYaafiContextMapper
(File tempRootDir, org.apache.avalon.framework.context.Context context, ClassLoader classLoader) Constructor -
Method Summary
-
Constructor Details
-
AvalonToYaafiContextMapper
public AvalonToYaafiContextMapper(File tempRootDir, org.apache.avalon.framework.context.Context context, ClassLoader classLoader) Constructor- Parameters:
tempRootDir
- current temp directorycontext
- the existing contextclassLoader
- the classloader
-
-
Method Details
-
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- merlin
- fortress
- phoenix
- 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
-