Package io.quarkus.arc.impl
Interface ContextInstances
public interface ContextInstances
-
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent
(String id, Supplier<ContextInstanceHandle<?>> supplier) getIfPresent
(String id) void
removeEach
(Consumer<? super ContextInstanceHandle<?>> action) Removes all instance handles and performs the given action (if present) for each handle.
-
Method Details
-
computeIfAbsent
- Parameters:
id
-supplier
-- Returns:
- the instance handle
-
getIfPresent
- Parameters:
id
-- Returns:
- the instance handle if present,
null
otherwise
-
remove
- Parameters:
id
-- Returns:
- the removed instance handle, or
null
-
getAllPresent
Set<ContextInstanceHandle<?>> getAllPresent()- Returns:
- all instance handles
-
removeEach
Removes all instance handles and performs the given action (if present) for each handle.- Parameters:
action
-
-