Realm _getInstance(String name) { return _getInstance(config.getName(), name); }
/** * This is a private method for getting realm instance. * If realm does not exist, then it will not return null rather than * throw exception. * @param name identifies the realm * @return the requested realm */ private static synchronized Realm _getInstance(String name) { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr._getInstance(name); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } }
Realm _getInstance(String name) { return _getInstance(config.getName(), name); }
/** * This is a private method for getting realm instance. * If realm does not exist, then it will not return null rather than * throw exception. * @param name identifies the realm * @return the requested realm */ private static synchronized Realm _getInstance(String configName, String name) { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr._getInstance(configName, name); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } }
/** * This is a private method for getting realm instance. * If realm does not exist, then it will not return null rather than * throw exception. * @param name identifies the realm * @return the requested realm */ private static synchronized Realm _getInstance(String name) { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr._getInstance(name); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } }
/** * This is a private method for getting realm instance. * If realm does not exist, then it will not return null rather than * throw exception. * @param name identifies the realm * @return the requested realm */ private static synchronized Realm _getInstance(String configName, String name) { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr._getInstance(configName, name); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } }
/** * This is a private method for getting realm instance. * If realm does not exist, then it will not return null rather than * throw exception. * @param name identifies the realm * @return the requested realm */ private static Realm _getInstance(String name) { Habitat habitat = Globals.getDefaultHabitat(); RealmsManager mgr = habitat.getComponent(RealmsManager.class); if (mgr != null) { return mgr._getInstance(name); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } }