register

public final static Unit register(String selectorKey, Function1<String, Boolean> selector)(source)

Registers the given load selector with the given key or throws an exception, if there was a selector or load selector registered for the given key.

Parameters

selectorKey

The key (as in key-value pair) to register a load selector for

selector

The load selector instance