com.atlassian.jira.studio.startup
Interface StudioStartupHooks


public interface StudioStartupHooks

Callbacks that will be called during JIRA's startup process.

Since:
v4.4.1

Method Summary
 void afterJiraStart()
          Called after JIRA has started.
 void beforeJiraStart()
          Called before JIRA has had a chance to start.
 Properties getLog4jConfiguration(Properties initialConfiguration)
          Called by JIRA during startup to get its log4j configuration.
 

Method Detail

getLog4jConfiguration

@Nullable
Properties getLog4jConfiguration(@Nonnull
                                          Properties initialConfiguration)
Called by JIRA during startup to get its log4j configuration. JIRA will re-initialise its log4j configuration with the configuration returned from this function (see PropertyConfigurator). JIRA's current log4j configuration is passed as an argument to this method. The returned configuration will replace JIRA's current log4j configuration, and as such you will need to copy any of the current configuration that you wish to keep into into the returned configuration. A null return value means that JIRA should just keep its current configuration.

Parameters:
initialConfiguration - JIRA's current log4j configuration. This properties object is mutable and safe to return from this method.
Returns:
the new log4j configuration that JIRA will use. If you wish to keep JIRA's current log4j configuration, then you must ensure the passed configuraton is contained within the returned configuration. A null return means that JIRA's current log4j configuration should be kept.

beforeJiraStart

void beforeJiraStart()
Called before JIRA has had a chance to start. This is before any validation (e.g. does JIRA.HOME exist?) is performed.


afterJiraStart

void afterJiraStart()
Called after JIRA has started. This is called before any connection requests are accepted into JIRA.



Copyright © 2002-2013 Atlassian. All Rights Reserved.