public class ThreadLocalStackService<T> extends Object implements Service
| Constructor and Description |
|---|
ThreadLocalStackService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
T |
peek()
The injection point being operated on for this thread
|
T |
pop() |
void |
push(T item)
Replaces (or adds) the current injection point.
|
public void push(T item)
item - the injection point to usepublic T pop()
public T peek()
Copyright © 2014. All Rights Reserved.