/* 
 * Copyright 2011 Karl Pauls karlpauls@gmail.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package de.kalpatec.pojosr.framework.launch;

import java.util.Dictionary;
import java.util.List;
import org.osgi.framework.BundleContext;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.framework.ServiceListener;
import org.osgi.framework.ServiceReference;
import org.osgi.framework.ServiceRegistration;

public interface PojoServiceRegistry
{
    public BundleContext getBundleContext();
	
	public void startBundles(List<BundleDescriptor> bundles) throws Exception;

    public void addServiceListener(ServiceListener listener, String filter)
            throws InvalidSyntaxException;

    public void addServiceListener(ServiceListener listener);

    public void removeServiceListener(ServiceListener listener);

    public ServiceRegistration registerService(String[] clazzes,
            Object service, @SuppressWarnings("rawtypes") Dictionary properties);

    public ServiceRegistration registerService(String clazz, Object service,
            @SuppressWarnings("rawtypes") Dictionary properties);

    public ServiceReference[] getServiceReferences(String clazz, String filter)
            throws InvalidSyntaxException;

    public ServiceReference getServiceReference(String clazz);

    public Object getService(ServiceReference reference);

    public boolean ungetService(ServiceReference reference);
}

@@ -974,23 +974,16 @@
 y%0A%7B%0A    
-public 
 BundleCo
@@ -1011,23 +1011,16 @@
 t();%0A%09%0A%09
-public 
 void sta
@@ -1076,39 +1076,32 @@
 Exception;%0A%0A    
-public 
 void addServiceL
@@ -1193,31 +1193,24 @@
 ption;%0A%0A    
-public 
 void addServ
@@ -1253,23 +1253,16 @@
 );%0A%0A    
-public 
 void rem
@@ -1304,39 +1304,32 @@
 listener);%0A%0A    
-public 
 ServiceRegistrat
@@ -1445,39 +1445,32 @@
 operties);%0A%0A    
-public 
 ServiceRegistrat
@@ -1586,31 +1586,24 @@
 ties);%0A%0A    
-public 
 ServiceRefer
@@ -1707,23 +1707,16 @@
 n;%0A%0A    
-public 
 ServiceR
@@ -1764,23 +1764,16 @@
 );%0A%0A    
-public 
 Object g
@@ -1816,23 +1816,16 @@
 );%0A%0A    
-public 
 boolean 

Remove unnecessary qualifier