com.atlassian.jira.config.component
Class AbstractSwitchingInvocationAdaptor

java.lang.Object
  extended by com.atlassian.jira.config.component.AbstractComponentAdaptor
      extended by com.atlassian.jira.config.component.AbstractSwitchingInvocationAdaptor
All Implemented Interfaces:
org.picocontainer.ComponentAdapter
Direct Known Subclasses:
AppPropertiesComponentAdaptor, SwitchingInvocationAdapter

public abstract class AbstractSwitchingInvocationAdaptor
extends AbstractComponentAdaptor

Copyright (c) 2002-2004 All rights reserved.


Field Summary
 
Fields inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
container, interfaceClass
 
Constructor Summary
AbstractSwitchingInvocationAdaptor(Class interfaceClass, Class enabledClass, Class disabledClass)
           
 
Method Summary
 Class getComponentImplementation()
           
 Object getComponentInstance()
           
protected  InvocationHandler getHandler()
           
protected abstract  InvocationSwitcher getInvocationSwitcher()
           
protected  boolean isEnabled()
           
 
Methods inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
getComponentKey, getContainer, setContainer, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSwitchingInvocationAdaptor

public AbstractSwitchingInvocationAdaptor(Class interfaceClass,
                                          Class enabledClass,
                                          Class disabledClass)
Method Detail

isEnabled

protected boolean isEnabled()

getComponentImplementation

public Class getComponentImplementation()
Specified by:
getComponentImplementation in interface org.picocontainer.ComponentAdapter
Specified by:
getComponentImplementation in class AbstractComponentAdaptor

getHandler

protected InvocationHandler getHandler()

getComponentInstance

public Object getComponentInstance()
                            throws org.picocontainer.PicoInitializationException,
                                   org.picocontainer.PicoIntrospectionException
Specified by:
getComponentInstance in interface org.picocontainer.ComponentAdapter
Specified by:
getComponentInstance in class AbstractComponentAdaptor
Throws:
org.picocontainer.PicoInitializationException
org.picocontainer.PicoIntrospectionException

getInvocationSwitcher

protected abstract InvocationSwitcher getInvocationSwitcher()


Copyright © 2002-2007 Atlassian. All Rights Reserved.