136137138139140141142
return factory; } public static void registerStrategy(final String scheme, final ConnectionStrategy factory) { strategies.register(scheme, factory); Client.fireEvent(new ConnectionStrategyAdded(scheme, factory)); }
143144145146147148149150151152
public static ConnectionStrategy unregisterStrategy(final String scheme) { final ConnectionStrategy strategy = strategies.unregister(scheme); if (strategy != null) { Client.fireEvent(new ConnectionStrategyAdded(scheme, strategy)); } return strategy; }
135136137138139140141
142143144145146147148149150151
125126127128129130131
132133134135136137138139140141