com.atlassian.jira.datetime
Class DateTimeFormatterComponentAdapter

java.lang.Object
  extended by com.atlassian.jira.config.component.AbstractComponentAdaptor<DateTimeFormatter>
      extended by com.atlassian.jira.datetime.DateTimeFormatterComponentAdapter
All Implemented Interfaces:
org.picocontainer.ComponentAdapter

public class DateTimeFormatterComponentAdapter
extends AbstractComponentAdaptor<DateTimeFormatter>

A component adapter that creates DateTimeFormatter proxies. Whenever a method is called on the proxy, it will call DateTimeFormatterFactory.formatter() to obtain a real DateTimeFormatter, and will delegate the call to the real implementation.

Since:
v5.0
See Also:
DateTimeFormatterFactory.formatter()

Field Summary
 
Fields inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
container, interfaceClass
 
Constructor Summary
DateTimeFormatterComponentAdapter()
           
 
Method Summary
 Class<?> getComponentImplementation()
           
 Object getComponentInstance()
           
protected  DateTimeFormatterFactory getFactoryFromContainer()
          Returns a DateTimeFormatterFactory instance from the container.
 void verify()
           
 
Methods inherited from class com.atlassian.jira.config.component.AbstractComponentAdaptor
getComponentKey, getContainer, setContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeFormatterComponentAdapter

public DateTimeFormatterComponentAdapter()
Method Detail

getComponentImplementation

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

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<DateTimeFormatter>
Throws:
org.picocontainer.PicoInitializationException
org.picocontainer.PicoIntrospectionException

verify

public void verify()
            throws org.picocontainer.defaults.UnsatisfiableDependenciesException
Specified by:
verify in interface org.picocontainer.ComponentAdapter
Overrides:
verify in class AbstractComponentAdaptor<DateTimeFormatter>
Throws:
org.picocontainer.defaults.UnsatisfiableDependenciesException

getFactoryFromContainer

protected DateTimeFormatterFactory getFactoryFromContainer()
Returns a DateTimeFormatterFactory instance from the container.

Returns:
a DateTimeFormatterFactory


Copyright © 2002-2013 Atlassian. All Rights Reserved.