private static ServiceTracker createServiceTrackerWithFilter( BundleContext bc, String ldapFilter ) { try { Filter filter; filter = bc.createFilter( ldapFilter ); ServiceTracker tracker = new ServiceTracker( bc, filter, null ); return tracker; } catch ( InvalidSyntaxException exc ) { throw new ServiceLookupException( exc ); } }
if( svc == null ) throw new ServiceLookupException( "gave up waiting for service " + ldapFilter ); throw new ServiceLookupException( exc ); throw new ServiceLookupException( exc );
if( svc == null ) throw new ServiceLookupException( "gave up waiting for service " + className ); throw new ServiceLookupException( exc );
if( svc == null ) throw new ServiceLookupException( "gave up waiting for service " + className ); throw new ServiceLookupException( exc );
if( svc == null ) throw new ServiceLookupException( "gave up waiting for service " + className ); throw new ServiceLookupException( exc );