/******************************************************************************* * Copyright (c) 2008, 2010 VMware Inc. * 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: * VMware Inc. - initial contribution *******************************************************************************/ package org.eclipse.virgo.kernel.agent.dm.internal; import org.eclipse.virgo.nano.serviceability.LogEventDelegate; import org.eclipse.virgo.medic.eventlog.Level; import org.eclipse.virgo.medic.eventlog.LogEvent; /** * Defines all the {@link LogEvent LogEvents} for the kernel agent. * * <strong>Concurrent Semantics</strong><br/> * * Implementation is immutable. * */ public enum AgentLogEvents implements LogEvent { BUNDLE_CONTEXT_FAILED(0, Level.ERROR); private static final String PREFIX = "AG"; private final LogEventDelegate delegate; private AgentLogEvents(int code, Level level) { this.delegate = new LogEventDelegate(PREFIX, code, level); } /** * {@inheritDoc} */ public String getEventCode() { return this.delegate.getEventCode(); } /** * {@inheritDoc} */ public Level getLevel() { return this.delegate.getLevel(); } }