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
  • Constructor Summary

    Constructors
    Constructor
    Description
    AvalonToYaafiContextMapper(File tempRootDir, org.apache.avalon.framework.context.Context context, ClassLoader classLoader)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    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
  • Constructor Details

    • AvalonToYaafiContextMapper

      public AvalonToYaafiContextMapper(File tempRootDir, org.apache.avalon.framework.context.Context context, ClassLoader classLoader)
      Constructor
      Parameters:
      tempRootDir - current temp directory
      context - the existing context
      classLoader - 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 map
      from - Avalon container identifier
      Returns:
      the mapped Avalon context
      Throws:
      org.apache.avalon.framework.context.ContextException - Accessing the context failed