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 Detail
-
running
T running()
- Returns:
- the running component instance
- Throws:
org.infinispan.commons.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:
trueif all of the component's start methods have run and none of its stop methods started running
-
isWired
boolean isWired()
-
isAlias
boolean isAlias()
-
getName
String getName()
-
-