Class SwitchingInvocationAdapter<T>
java.lang.Object
com.atlassian.jira.component.pico.adapter.AbstractComponentAdaptor<T>
com.atlassian.jira.component.pico.adapter.AbstractSwitchingInvocationAdaptor<T>
com.atlassian.jira.config.component.SwitchingInvocationAdapter<T>
- All Implemented Interfaces:
org.picocontainer.ComponentAdapter<T>
The SwitchingInvocationAdapter returns a proxy that allows for dynamic determination of
which class implementation to be called on when invoking a specified method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter
org.picocontainer.ComponentAdapter.NOTHING -
Field Summary
Fields inherited from class com.atlassian.jira.component.pico.adapter.AbstractComponentAdaptor
interfaceClass -
Constructor Summary
ConstructorsConstructorDescriptionSwitchingInvocationAdapter(Class<T> interfaceClass, Class<? extends T> enabledClass, Class<? extends T> disabledClass, InvocationSwitcher invocationSwitcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected InvocationSwitcherReturns the invocation switcher that will choose between the "enabled" and "disabled" implementations.Methods inherited from class com.atlassian.jira.component.pico.adapter.AbstractSwitchingInvocationAdaptor
getComponentImplementation, getComponentInstanceMethods inherited from class com.atlassian.jira.component.pico.adapter.AbstractComponentAdaptor
accept, findAdapterOfType, getComponentInstance, getComponentKey, getDelegate, getDescriptor, verify
-
Constructor Details
-
SwitchingInvocationAdapter
-
-
Method Details
-
getInvocationSwitcher
Description copied from class:AbstractSwitchingInvocationAdaptorReturns the invocation switcher that will choose between the "enabled" and "disabled" implementations.- Specified by:
getInvocationSwitcherin classAbstractSwitchingInvocationAdaptor<T>- Returns:
- the switcher
-