com.atlassian.jira.task.context
Class Contexts

java.lang.Object
  extended by com.atlassian.jira.task.context.Contexts

public class Contexts
extends Object

Provides static methods for creating Context instances easily.

Since:
v4.0

Method Summary
static Context nullContext()
           
static Context percentageLogger(Sized sized, org.apache.log4j.Logger logger, String msg)
           
static Context percentageReporter(Sized sized, TaskProgressSink sink, I18nHelper i18n, org.apache.log4j.Logger logger, String msg)
           
static Context percentageReporter(Sized sized, TaskProgressSink sink, I18nHelper i18n, org.apache.log4j.Logger logger, String msg, com.atlassian.johnson.event.Event event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nullContext

public static Context nullContext()

percentageReporter

public static Context percentageReporter(@NotNull
                                         Sized sized,
                                         @NotNull
                                         TaskProgressSink sink,
                                         @NotNull
                                         I18nHelper i18n,
                                         @NotNull
                                         org.apache.log4j.Logger logger,
                                         @NotNull
                                         String msg)

percentageReporter

public static Context percentageReporter(@NotNull
                                         Sized sized,
                                         @NotNull
                                         TaskProgressSink sink,
                                         @NotNull
                                         I18nHelper i18n,
                                         @NotNull
                                         org.apache.log4j.Logger logger,
                                         @NotNull
                                         String msg,
                                         @NotNull
                                         com.atlassian.johnson.event.Event event)

percentageLogger

public static Context percentageLogger(@NotNull
                                       Sized sized,
                                       @NotNull
                                       org.apache.log4j.Logger logger,
                                       @NotNull
                                       String msg)


Copyright © 2002-2012 Atlassian. All Rights Reserved.