com.atlassian.jira.config.component
Class SwitchingInvocationAdapter<T>

java.lang.Object
  extended by com.atlassian.jira.config.component.AbstractComponentAdaptor<T>
      extended by com.atlassian.jira.config.component.AbstractSwitchingInvocationAdaptor<T>
          extended by com.atlassian.jira.config.component.SwitchingInvocationAdapter<T>
All Implemented Interfaces:
org.picocontainer.ComponentAdapter<T>

public class SwitchingInvocationAdapter<T>
extends AbstractSwitchingInvocationAdaptor<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.config.component.AbstractComponentAdaptor
interfaceClass
 
Constructor Summary
SwitchingInvocationAdapter(Class<T> interfaceClass, Class<? extends T> enabledClass, Class<? extends T> disabledClass, InvocationSwitcher invocationSwitcher)
           
 
Method Summary
protected  InvocationSwitcher getInvocationSwitcher()
           
 
Methods inherited from class com.atlassian.jira.config.component.AbstractSwitchingInvocationAdaptor
getComponentImplementation, getComponentInstance, getHandler, isEnabled
 
Methods inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
accept, findAdapterOfType, getComponentInstance, getComponentKey, getDelegate, getDescriptor, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchingInvocationAdapter

public SwitchingInvocationAdapter(Class<T> interfaceClass,
                                  Class<? extends T> enabledClass,
                                  Class<? extends T> disabledClass,
                                  InvocationSwitcher invocationSwitcher)
Method Detail

getInvocationSwitcher

protected InvocationSwitcher getInvocationSwitcher()
Specified by:
getInvocationSwitcher in class AbstractSwitchingInvocationAdaptor<T>


Copyright © 2002-2014 Atlassian. All Rights Reserved.