Make ViewManagerRegistry class public

Summary: public I need to construct this class outside of the uimanager package, and this requires the class (and its constructor) to be public.

Reviewed By: astreet

Differential Revision: D2554847

fb-gh-sync-id: a73c3236b91a1ed7074521e19b72e1994804cced
This commit is contained in:
Denis Koroskin 2015-11-30 18:18:52 -08:00 committed by facebook-github-bot-4
parent 00046bc832
commit baa97b2e9f

View File

@ -17,7 +17,7 @@ import java.util.Map;
* Class that stores the mapping between native view name used in JS and the corresponding instance * Class that stores the mapping between native view name used in JS and the corresponding instance
* of {@link ViewManager}. * of {@link ViewManager}.
*/ */
/* package */ class ViewManagerRegistry { public class ViewManagerRegistry {
private final Map<String, ViewManager> mViewManagers = new HashMap<>(); private final Map<String, ViewManager> mViewManagers = new HashMap<>();
@ -27,7 +27,7 @@ import java.util.Map;
} }
} }
/* package */ ViewManager get(String className) { public ViewManager get(String className) {
ViewManager viewManager = mViewManagers.get(className); ViewManager viewManager = mViewManagers.get(className);
if (viewManager != null) { if (viewManager != null) {
return viewManager; return viewManager;