public EntryImpl ( final ConnectionDescriptor connectionDescriptor, final ConnectionService connectionService, final ServiceRegistration<?> serviceRegistration ) { this.connectionDescriptor = connectionDescriptor; this.connectionService = connectionService; this.serviceRegistration = serviceRegistration; connectionService.getConnection ().addConnectionStateListener ( this ); }
public EntryImpl ( final ConnectionDescriptor connectionDescriptor, final ConnectionService connectionService, final ServiceRegistration<?> serviceRegistration ) { this.connectionDescriptor = connectionDescriptor; this.connectionService = connectionService; this.serviceRegistration = serviceRegistration; connectionService.getConnection ().addConnectionStateListener ( this ); }
@Override public void startLogin () { notifyStateChange ( this.connectionService, ConnectionState.CLOSED, null, false ); this.connectionService.getConnection ().addConnectionStateListener ( this.connectionStateListener ); this.connectionService.setConnectCallbackHandler ( this.callbackHandler ); // we do call connect for lazy connections since the ConnectionService decides when to connect this.connectionService.connect (); }
private synchronized void createConnection () { this.entry = Activator.getDefaultConectionManager ().getConnection ( this.info ); if ( this.entry != null ) { this.entry.getConnectionService ().getConnection ().addConnectionStateListener ( this ); setConnectionService ( this.entry.getConnectionService () ); setConnectionState ( ConnectionState.CLOSED ); setConnectionError ( null ); } }
private synchronized void createConnection () { this.entry = Activator.getDefaultConectionManager ().getConnection ( this.info ); if ( this.entry != null ) { this.entry.getConnectionService ().getConnection ().addConnectionStateListener ( this ); setConnectionService ( this.entry.getConnectionService () ); setConnectionState ( ConnectionState.CLOSED ); setConnectionError ( null ); } }