/*******************************************************************************
* Copyright (c) 2007, 2014 compeople AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* compeople AG - initial API and implementation
*******************************************************************************/
package org.eclipse.riena.internal.communication.publisher.hessian;
/**
* TODO JavaDoc
*/
public final class MessageContextHolder {
private static final ThreadLocal<MessageContext> MESSAGE_CONTEXT = new ThreadLocal<MessageContext>();
private MessageContextHolder() {
}
public static MessageContext getMessageContext() {
return MESSAGE_CONTEXT.get();
}
public static void setMessageContext(final MessageContext msgCtx) {
MESSAGE_CONTEXT.set(msgCtx);
}
}