Class ContextImpl
- java.lang.Object
-
- org.glassfish.diagnostics.context.impl.ContextImpl
-
- All Implemented Interfaces:
ViewCapable
,Context
public class ContextImpl extends Object implements Context, ViewCapable
Base implementation oforg.glassfish.diagnostics.context.Context
. Delegates to aorg.glassfish.contextpropagation.View
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(String name)
Get a named value from this Context.Location
getLocation()
Get the Location of this Context.<T> T
put(String name, Number value, boolean propagates)
Put a named value in this Context.<T> T
put(String name, String value, boolean propagates)
Put a named value in this Context.<T> T
remove(String name)
Remove the named value from this Context.String
toString()
-
-
-
Method Detail
-
getLocation
public Location getLocation()
Description copied from interface:Context
Get the Location of this Context.- Specified by:
getLocation
in interfaceContext
-
put
public <T> T put(String name, String value, boolean propagates)
Description copied from interface:Context
Put a named value in this Context.
-
put
public <T> T put(String name, Number value, boolean propagates)
Description copied from interface:Context
Put a named value in this Context.
-
get
public <T> T get(String name)
Description copied from interface:Context
Get a named value from this Context.
-
remove
public <T> T remove(String name)
Description copied from interface:Context
Remove the named value from this Context.
-
-