com.atlassian.jira.service.services.file
Class AbstractMessageHandlingService

java.lang.Object
  |
  +--com.atlassian.jira.service.AbstractService
        |
        +--com.atlassian.jira.service.services.file.AbstractMessageHandlingService
All Implemented Interfaces:
JiraService, com.atlassian.configurable.ObjectConfigurable
Direct Known Subclasses:
FileService, PopService

public abstract class AbstractMessageHandlingService
extends AbstractService

An abstract service to be subclassed by any service which wants to use MessageHandlers.


Field Summary
protected  MessageHandler handler
           
protected static java.lang.String KEY_HANDLER
           
protected static java.lang.String KEY_HANDLER_PARAMS
           
 
Fields inherited from class com.atlassian.jira.service.AbstractService
log, name
 
Constructor Summary
AbstractMessageHandlingService()
           
 
Method Summary
protected  MessageHandler getHandler()
           
 void init(com.opensymphony.module.propertyset.PropertySet props)
          Initialise the service.
 
Methods inherited from class com.atlassian.jira.service.AbstractService
destroy, getDefaultProperty, getDescription, getObjectConfiguration, getProperties, getProperty, hasProperty, isInternal, isUnique, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.configurable.ObjectConfigurable
getObjectConfiguration
 

Field Detail

KEY_HANDLER

protected static final java.lang.String KEY_HANDLER
See Also:
Constant Field Values

KEY_HANDLER_PARAMS

protected static final java.lang.String KEY_HANDLER_PARAMS
See Also:
Constant Field Values

handler

protected MessageHandler handler
Constructor Detail

AbstractMessageHandlingService

public AbstractMessageHandlingService()
Method Detail

init

public void init(com.opensymphony.module.propertyset.PropertySet props)
          throws com.atlassian.configurable.ObjectConfigurationException
Description copied from interface: JiraService
Initialise the service. This method is guaranteed to be called before the first call to run().

As the parameters are gained from the user's interaction with the website, it is not guaranteed to be called with the correct, or indeed with any parameters.

init() may be called multiple times during the services lifetime.

Specified by:
init in interface JiraService
Overrides:
init in class AbstractService
com.atlassian.configurable.ObjectConfigurationException

getHandler

protected MessageHandler getHandler()


Copyright © 2002-2003 Atlassian. All Rights Reserved.