package org.allmyinfo.service.http.osgi.debug;

import org.allmyinfo.http.BaseActivator;
import org.allmyinfo.http.HttpServiceRegistry;
import org.eclipse.jdt.annotation.NonNull;
import org.osgi.framework.BundleContext;

public class Activator extends BaseActivator
{
	public Activator()
	{
		super(new Listener() {
			@Override
			public void registerHttpServices(final @NonNull HttpServiceRegistry registry,
					final @NonNull BundleContext context)
			{
				registry.add(context, "/debug/displayBlockedServices", new DisplayBlockedServices());
				registry.add(context, "/debug/displayAllServices", new DisplayAllServices(context));
			}

			@Override
			public String getName()
			{
				return Activator.class.getPackage().getName();
			}
		});
	}
}
