Package: EventLoggerServiceFactory

EventLoggerServiceFactory

nameinstructionbranchcomplexitylinemethod
EventLoggerServiceFactory(EventLoggerFactory)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getService(Bundle, ServiceRegistration)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
ungetService(Bundle, ServiceRegistration, EventLogger)
M: 1 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008, 2010 VMware Inc.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * VMware Inc. - initial contribution
10: *******************************************************************************/
11:
12: package org.eclipse.virgo.medic.eventlog.impl;
13:
14: import org.eclipse.virgo.medic.eventlog.EventLogger;
15: import org.eclipse.virgo.medic.eventlog.EventLoggerFactory;
16: import org.osgi.framework.Bundle;
17: import org.osgi.framework.ServiceFactory;
18: import org.osgi.framework.ServiceRegistration;
19:
20:
21: public final class EventLoggerServiceFactory implements ServiceFactory<EventLogger> {
22:
23: private final EventLoggerFactory eventLoggerFactory;
24:
25: public EventLoggerServiceFactory(EventLoggerFactory factory) {
26: this.eventLoggerFactory = factory;
27: }
28:
29: public EventLogger getService(Bundle bundle, ServiceRegistration<EventLogger> registration) {
30: return this.eventLoggerFactory.createEventLogger(bundle);
31: }
32:
33: public void ungetService(Bundle bundle, ServiceRegistration<EventLogger> registration, EventLogger service) {
34: }
35: }