blob: 507fde5c9032d0cd23f21c529cb7ca4d545797fe [file] [log] [blame]
/*******************************************************************************
* 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.userregionfactory;
import org.eclipse.virgo.nano.serviceability.LogEventDelegate;
import org.eclipse.virgo.medic.eventlog.Level;
import org.eclipse.virgo.medic.eventlog.LogEvent;
/**
* {@link org.eclipse.virgo.medic.eventlog.LogEvent} for the OSGi provisioning bundle.
* <p/>
*
* <strong>Concurrent Semantics</strong><br />
*
* Threadsafe.
*
*/
public enum UserRegionFactoryLogEvents implements LogEvent {
REGION_IMPORTS_PARSE_FAILED(1, Level.ERROR), //
REGION_IMPORT_NO_MATCH(2, Level.WARNING), //
USER_REGION_CONFIGURATION_UNAVAILABLE(10, Level.ERROR);
private static final String PREFIX = "UF";
private final LogEventDelegate delegate;
private UserRegionFactoryLogEvents(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();
}
}