@Test( expected = NullPointerException.class ) public void testCreateClient_nullParent() { this.factory.createClient( null ); }
@Override public IMessagingClient createClient( final ReconfigurableClient<?> parent ) { this.logger.fine( "Creating a new Rabbit MQ client with owner = " + parent.getOwnerKind()); final RabbitMqClient client = new RabbitMqClient( parent, this.configuration ); synchronized( this ) { this.clients.add( client ); } this.logger.finer( "A new Rabbit MQ client was created." ); return client; }
RabbitMqClientFactory implements IMessagingClientFactory { @Override public IMessagingClient createClient( final ReconfigurableClient<?> parent ) { this.logger.fine( "Creating a new Rabbit MQ client with owner = " + parent.getOwnerKind()); final RabbitMqClient client = new RabbitMqClient( parent, this.configuration ); synchronized( this ) { this.clients.add( client ); } this.logger.finer( "A new Rabbit MQ client was created." ); return client; } }
RabbitMqClientFactory implements IMessagingClientFactory { @Override public IMessagingClient createClient( final ReconfigurableClient<?> parent ) { this.logger.fine( "Creating a new Rabbit MQ client with owner = " + parent.getOwnerKind()); final RabbitMqClient client = new RabbitMqClient( parent, this.configuration ); synchronized( this ) { this.clients.add( client ); } this.logger.finer( "A new Rabbit MQ client was created." ); return client; }  }
RabbitMqClientFactory implements IMessagingClientFactory { @Override public IMessagingClient createClient( final ReconfigurableClient<?> parent ) { this.logger.fine( "Creating a new Rabbit MQ client with owner = " + parent.getOwnerKind()); final RabbitMqClient client = new RabbitMqClient( parent, this.configuration ); synchronized( this ) { this.clients.add( client ); } this.logger.finer( "A new Rabbit MQ client was created." ); return client; }  void reconfigure(); void stop(); @Override String getType(); @Override IMessagingClient createClient( final ReconfigurableClient<?> parent ); void setConfiguration( Dictionary<?,?> properties ); @Override boolean setConfiguration( final Map<String,String> configuration ); }
RabbitMqClientFactory implements IMessagingClientFactory { @Override public IMessagingClient createClient( final ReconfigurableClient<?> parent ) { this.logger.fine( "Creating a new Rabbit MQ client with owner = " + parent.getOwnerKind()); final RabbitMqClient client = new RabbitMqClient( parent, this.configuration ); synchronized( this ) { this.clients.add( client ); } this.logger.finer( "A new Rabbit MQ client was created." ); return client; }  void reconfigure(); void stop(); @Override String getType(); @Override IMessagingClient createClient( final ReconfigurableClient<?> parent ); void setConfiguration( Dictionary<?,?> properties ); @Override boolean setConfiguration( final Map<String,String> configuration );  }