From 41340ae6cb640bf77b6e68cce2ff71e5aa982a2b Mon Sep 17 00:00:00 2001 From: mwebster Date: Mon, 14 Aug 2006 15:54:06 +0000 Subject: [PATCH] Bug 150487 "Tracing and Logging Framework" (allow LTW IMessageHandler implementations to add context) --- .../org/aspectj/bridge/IMessageContext.java | 16 ++++++++++++++++ .../weaver/tools/ISupportsMessageContext.java | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 bridge/src/org/aspectj/bridge/IMessageContext.java create mode 100644 weaver/src/org/aspectj/weaver/tools/ISupportsMessageContext.java diff --git a/bridge/src/org/aspectj/bridge/IMessageContext.java b/bridge/src/org/aspectj/bridge/IMessageContext.java new file mode 100644 index 000000000..2f5512a1d --- /dev/null +++ b/bridge/src/org/aspectj/bridge/IMessageContext.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * Matthew Webster - initial implementation + *******************************************************************************/ +package org.aspectj.bridge; + +public interface IMessageContext { + + public String getContextId (); +} diff --git a/weaver/src/org/aspectj/weaver/tools/ISupportsMessageContext.java b/weaver/src/org/aspectj/weaver/tools/ISupportsMessageContext.java new file mode 100644 index 000000000..69e55b143 --- /dev/null +++ b/weaver/src/org/aspectj/weaver/tools/ISupportsMessageContext.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * Matthew Webster - initial implementation + *******************************************************************************/ +package org.aspectj.weaver.tools; + +import org.aspectj.bridge.IMessageContext; + +public interface ISupportsMessageContext { + + public void setMessageContext (IMessageContext messageContext); +} -- 2.39.5