@Test public void checkCorrectnessOfActivator() throws Exception { this.connectorService = null; final MyConnectionFactory connectionFactory = create( new String[] { Protocols.HTTP.protocol() }, 2 ); registerConnectionFactory( connectionFactory ); final Activator activator = new Activator(); activator.start( this.context ); assertEquals( connectionFactory.getConnection(), this.connectorService.open( Protocols.HTTP.url() ) ); }
@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();  }