ParentContext - type of the parent contextChildContext - type of the child contextpublic class ChildContextLookup<ParentContext extends BaseContext,ChildContext extends BaseContext> extends Object implements ContextDataLookupFunction<ParentContext,ChildContext>
ContextDataLookupFunction that gets the child context of a given parent context.| Constructor and Description |
|---|
ChildContextLookup(Class<ChildContext> type)
Constructor.
|
ChildContextLookup(Class<ChildContext> type,
boolean createContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ChildContext |
apply(ParentContext input) |
public ChildContextLookup(@Nonnull Class<ChildContext> type)
autocreate to false.type - child context type to look uppublic ChildContextLookup(@Nonnull Class<ChildContext> type, boolean createContext)
type - child context type to look upcreateContext - whether to create the child context if it does not exist@Nullable public ChildContext apply(@Nullable ParentContext input)
apply in interface com.google.common.base.Function<ParentContext extends BaseContext,ChildContext extends BaseContext>Copyright © 2021. All rights reserved.