Package org.refcodes.component
Interface Component
-
- All Superinterfaces:
Destroyable
- All Known Subinterfaces:
ConfigurableComponent<CTX>,DigesterComponent<J>,InitializableComponent
public interface Component extends Destroyable
Per definition anyComponentat least must provide aDestroyable.destroy()method. In case aComponenthas been destroyed, then invoking any of thatComponentinstance's methods (except theDestroyable.destroy()method) must throw anIllegalStateExceptionas by definition a once destroyedComponentis 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 theDisposableinterface from the refcodes-mixin artifact. This semantically underlines your intentions more clearly (not being aComponentand 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
-
-