Package org.refcodes.component
Interface Component
-
- All Superinterfaces:
Destroyable
- All Known Subinterfaces:
ConfigurableComponent<CTX>
,DigesterComponent<J>
,InitializableComponent
public interface Component extends Destroyable
Per definition anyComponent
at least must provide aDestroyable.destroy()
method. In case aComponent
has been destroyed, then invoking any of thatComponent
instance's methods (except theDestroyable.destroy()
method) must throw anIllegalStateException
as by definition a once destroyedComponent
is in the state of being destroyed which is irreversible.ATTENTION: In case you intend to provide
Destroyable.destroy()
functionality to a plain java class which is not intended to be a matureComponent
, then please just implement theDisposable
interface from the refcodes-mixin artifact. This semantically underlines your intentions more clearly (not being aComponent
and reduces dependencies to the refcodes-component artifact.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable
Destroyable.DestroyAutomaton
-
-
Method Summary
-
Methods inherited from interface org.refcodes.component.Destroyable
destroy
-
-