Uses com.twitter.app.LoadService
to find at most one ServiceLoadedToggleMap
with the given libraryName.
Uses com.twitter.app.LoadService
to find at most one ServiceLoadedToggleMap
with the given libraryName.
If no matches are found, a NullToggleMap is returned.
Note: only 0 or 1 matches are allowed, anything more
will cause an IllegalStateException
to be thrown. This is done
so that which ToggleMap used at runtime is deterministic.
the name of the ServiceLoadedToggleMap.libraryName that must match to be considered for use. The names should be in fully-qualified form to avoid collisions, e.g. "com.twitter.finagle".