@Test public void openString() throws Exception { final MyConnectionFactory factory1 = create( new String[] { Protocols.HTTP.protocol() }, 1 ); registerConnectionFactory( factory1, "(io.scheme=http)" ); final MyConnectionFactory factory2 = create( new String[] { Protocols.FTP.protocol() }, 2 ); registerConnectionFactory( factory2, "(io.scheme=ftp)" ); final Connection returnedConn1 = this.connectorService.open( Protocols.HTTP.url() ); assertEquals( factory1.getConnection(), returnedConn1 ); final Connection returnedConn2 = this.connectorService.open( Protocols.FTP.url() ); assertEquals( factory2.getConnection(), returnedConn2 ); }
@Override public Connection open( final String aName ) throws IOException { return open( aName, ConnectorService.READ_WRITE ); }
ConnectorServiceImpl implements ConnectorService { @Override public Connection open( final String aName ) throws IOException { return open( aName, ConnectorService.READ_WRITE ); } }
ConnectorServiceImpl implements ConnectorService { @Override public Connection open( final String aName ) throws IOException { return open( aName, ConnectorService.READ_WRITE ); } ConnectorServiceImpl( final BundleContext aContext ); }
ConnectorServiceImpl implements ConnectorService { @Override public Connection open( final String aName ) throws IOException { return open( aName, ConnectorService.READ_WRITE ); } ConnectorServiceImpl( final BundleContext aContext ); @Override Connection open( final String aName ); @Override Connection open( final String aName, final int aMode ); @Override Connection open( final String aName, final int aMode, final boolean aTimeouts ); @Override DataInputStream openDataInputStream( final String aName ); @Override DataOutputStream openDataOutputStream( final String aName ); @Override InputStream openInputStream( final String aName ); @Override OutputStream openOutputStream( final String aName ); void shutdown(); }
ConnectorServiceImpl implements ConnectorService { @Override public Connection open( final String aName ) throws IOException { return open( aName, ConnectorService.READ_WRITE ); } ConnectorServiceImpl( final BundleContext aContext ); @Override Connection open( final String aName ); @Override Connection open( final String aName, final int aMode ); @Override Connection open( final String aName, final int aMode, final boolean aTimeouts ); @Override DataInputStream openDataInputStream( final String aName ); @Override DataOutputStream openDataOutputStream( final String aName ); @Override InputStream openInputStream( final String aName ); @Override OutputStream openOutputStream( final String aName ); void shutdown();  }