Class RootContextLookup<StartContext extends BaseContext,RootContext extends BaseContext>
java.lang.Object
org.opensaml.messaging.context.navigate.RootContextLookup<StartContext,RootContext>
- Type Parameters:
StartContext
- type of the starting contextRootContext
- type of the root context
- All Implemented Interfaces:
Function<StartContext,
,RootContext> ContextDataLookupFunction<StartContext,
RootContext>
public class RootContextLookup<StartContext extends BaseContext,RootContext extends BaseContext>
extends Object
implements ContextDataLookupFunction<StartContext,RootContext>
A
ContextDataLookupFunction
that gets the root of context tree.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
claz
Class type being returned.
-
-
Constructor Details
-
RootContextLookup
public RootContextLookup()Constructor. -
RootContextLookup
public RootContextLookup(@Nonnull @ParameterName(name="targetClass") Class<RootContext> targetClass) Constructor.- Parameters:
targetClass
- the type to return
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<StartContext extends BaseContext,
RootContext extends BaseContext>
-