/** * Prevents the creation of multiple root scopes in the scope forest. * TP scope forest will be restricted to a scope tree. On android this option * can help to detect when a scope is reopened after it was destroyed. * @return a configuration that allows a single root scope. */ public Configuration preventMultipleRootScopes() { this.multipleRootScopeCheckConfiguration = new MultipleRootScopeCheckOnConfiguration(); return this; }
/** * Prevents the creation of multiple root scopes in the scope forest. * TP scope forest will be restricted to a scope tree. On android this option * can help to detect when a scope is reopened after it was destroyed. * @return a configuration that allows a single root scope. */ public Configuration preventMultipleRootScopes() { this.multipleRootScopeCheckConfiguration = new MultipleRootScopeCheckOnConfiguration(); return this; }