Klasse YaafiToAvalonContextMapper
java.lang.Object
org.apache.fulcrum.yaafi.framework.context.YaafiToAvalonContextMapper
Helper for converting a YAAFI context to a different container
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungYaafiToAvalonContextMapper
(String urnAvalonName, ClassLoader urnAvalonClassLoader) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.apache.avalon.framework.context.DefaultContext
Map a YAAFI (Merlin) context to a different incarnation
-
Konstruktordetails
-
YaafiToAvalonContextMapper
Constructor- Parameter:
urnAvalonName
- the name of the component for which we create the contexturnAvalonClassLoader
- the classloader of the component
-
-
Methodendetails
-
getUrnAvalonClassLoader
- Gibt zurück:
- Returns the urnAvalonClassLoader.
-
getUrnAvalonName
- Gibt zurück:
- 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- Parameter:
context
- the context to be mappedto
- the target Avalon container- Gibt zurück:
- the mapped context
- Löst aus:
org.apache.avalon.framework.context.ContextException
- accessing the context failed
-