Package com.persequor.extension.ioc
Interface IMultipleImplementationsBinder<T>
- Type Parameters:
T- Common interface of all the implementations
public interface IMultipleImplementationsBinder<T>
Allows binding multiple implementations of a particular interface in extension points
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an implementation to this extension point.voidclear()Clears all implementations from the extension point, and thus falling back to default behaviour.voidRegisters an implementation without enabling it.voidRemoves a specific implementation from the extension point.
-
Method Details
-
add
Adds an implementation to this extension point. Multiple implementations can be registered for this extension point. If you wish to remove already registered implementations use either theremove(Class)or theclear()method- Parameters:
implementation- the implementation class to be instantiated by SAGA
-
remove
Removes a specific implementation from the extension point.- Parameters:
implementation- the implementation class to be removed
-
register
Registers an implementation without enabling it. Following activation of the implementation can be done through other mechanisms (e.g. interactive UI).- Parameters:
implementation- the implementation class to be registered
-
clear
void clear()Clears all implementations from the extension point, and thus falling back to default behaviour.
-