Class YaafiToAvalonContextMapper
java.lang.Object
org.apache.fulcrum.yaafi.framework.context.YaafiToAvalonContextMapper
Helper for converting a YAAFI context to a different container
- Author:
- Siegfried Goeschl
-
Constructor Summary
ConstructorsConstructorDescriptionYaafiToAvalonContextMapper(String urnAvalonName, ClassLoader urnAvalonClassLoader) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avalon.framework.context.DefaultContextMap a YAAFI (Merlin) context to a different incarnation
-
Constructor Details
-
YaafiToAvalonContextMapper
Constructor- Parameters:
urnAvalonName- the name of the component for which we create the contexturnAvalonClassLoader- the classloader of the component
-
-
Method Details
-
getUrnAvalonClassLoader
- Returns:
- Returns the urnAvalonClassLoader.
-
getUrnAvalonName
- Returns:
- Returns the urnAvalonName.
-
mapTo
public org.apache.avalon.framework.context.DefaultContext mapTo(org.apache.avalon.framework.context.Context context, String to) throws org.apache.avalon.framework.context.ContextException Map a YAAFI (Merlin) context to a different incarnation- Parameters:
context- the context to be mappedto- the target Avalon container- Returns:
- the mapped context
- Throws:
org.apache.avalon.framework.context.ContextException- accessing the context failed
-