Package org.infinispan.factories.impl
Interface ComponentRef<T>
-
public interface ComponentRef<T>
Reference to a component. TODO Dan: Investigate locking the component so that dependencies cannot stop while used through a weak dependency. Not sure how useful it would be, since most references to components are in classes that are not registered components themselves.- Since:
- 9.4
- Author:
- Dan Berindei
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getName()
boolean
isRunning()
boolean
isWired()
T
running()
T
wired()
-
-
-
Method Detail
-
running
T running()
- Returns:
- the running component instance
- Throws:
IllegalLifecycleStateException
- if the component is not running
-
wired
T wired()
- Returns:
- the wired component instance, which may or may not be running.
-
isRunning
boolean isRunning()
- Returns:
true
if all of the component's start methods have run and none of its stop methods started running
-
isWired
boolean isWired()
-
getName
String getName()
-
-