Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/LoggingHostDiscoveryListener.java')
-rw-r--r--compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/LoggingHostDiscoveryListener.java49
1 files changed, 0 insertions, 49 deletions
diff --git a/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/LoggingHostDiscoveryListener.java b/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/LoggingHostDiscoveryListener.java
deleted file mode 100644
index 887fbf148..000000000
--- a/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/LoggingHostDiscoveryListener.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Composent, Inc. 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:
- * Composent, Inc. - initial API and implementation
- ******************************************************************************/
-package org.eclipse.ecf.osgi.services.discovery;
-
-import org.eclipse.ecf.discovery.IServiceInfo;
-import org.osgi.framework.ServiceReference;
-
-public class LoggingHostDiscoveryListener extends AbstractDiscoveryListener
- implements IHostDiscoveryListener {
-
- public LoggingHostDiscoveryListener(int logLevel) {
- super(logLevel);
- }
-
- public LoggingHostDiscoveryListener() {
- }
-
- public void publish(ServiceReference publicationServiceReference,
- IServiceInfo serviceInfo) {
- if (publicationServiceReference == null || serviceInfo == null)
- return;
- StringBuffer sb = new StringBuffer(
- "OSGi ECF service discovery: publish").append("\n"); //$NON-NLS-1$ //$NON-NLS-2$
- sb.append(createTabs(1)).append("serviceReference=") //$NON-NLS-1$
- .append(publicationServiceReference).append("\n") //$NON-NLS-1$
- .append(printServiceInfo(1, serviceInfo));
- log(publicationServiceReference, sb.toString(), null);
- }
-
- public void unpublish(ServiceReference publicationServiceReference,
- IServiceInfo serviceInfo) {
- if (publicationServiceReference == null || serviceInfo == null)
- return;
- StringBuffer sb = new StringBuffer(
- "OSGi ECF service discovery: unpublish").append("\n"); //$NON-NLS-1$ //$NON-NLS-2$
- sb.append(createTabs(1)).append("serviceReference=") //$NON-NLS-1$
- .append(publicationServiceReference).append("\n") //$NON-NLS-1$
- .append(printServiceInfo(1, serviceInfo));
- log(publicationServiceReference, sb.toString(), null);
- }
-
-}

Back to the top