Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/bundle/OMTraceHandlerEventImpl.java')
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/bundle/OMTraceHandlerEventImpl.java78
1 files changed, 78 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/bundle/OMTraceHandlerEventImpl.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/bundle/OMTraceHandlerEventImpl.java
new file mode 100644
index 0000000000..6eae514f06
--- /dev/null
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/bundle/OMTraceHandlerEventImpl.java
@@ -0,0 +1,78 @@
+/***************************************************************************
+ * Copyright (c) 2004 - 2007 Eike Stepper, Germany.
+ * 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:
+ * Eike Stepper - initial API and implementation
+ **************************************************************************/
+package org.eclipse.net4j.internal.util.bundle;
+
+import org.eclipse.net4j.util.om.OMTraceHandler;
+import org.eclipse.net4j.util.om.OMTracer;
+
+import java.io.Serializable;
+
+/**
+ * @author Eike Stepper
+ */
+public class OMTraceHandlerEventImpl implements OMTraceHandler.Event, Serializable
+{
+ private static final long serialVersionUID = 1L;
+
+ protected long timeStamp;
+
+ protected OMTracer tracer;
+
+ protected Class context;
+
+ protected String message;
+
+ protected Throwable throwable;
+
+ public OMTraceHandlerEventImpl(OMTracer tracer, Class context, String message, Throwable throwable)
+ {
+ if (tracer == null)
+ {
+ throw new IllegalArgumentException("tracer == null");
+ }
+
+ if (context == null)
+ {
+ throw new IllegalArgumentException("context == null");
+ }
+
+ timeStamp = System.currentTimeMillis();
+ this.tracer = tracer;
+ this.context = context;
+ this.message = message;
+ this.throwable = throwable;
+ }
+
+ public long getTimeStamp()
+ {
+ return timeStamp;
+ }
+
+ public OMTracer getTracer()
+ {
+ return tracer;
+ }
+
+ public Class getContext()
+ {
+ return context;
+ }
+
+ public String getMessage()
+ {
+ return message;
+ }
+
+ public Throwable getThrowable()
+ {
+ return throwable;
+ }
+}

Back to the top