/** * Initializes this provider with a given scope. If the given scope is different than the one this provider is * currently in and the transition between scopes is valid then a event is fired to all registered listeners. * * @param scope a scope to initialize this provider with */ public void initMOMForScope(LazyMOMProvider.Scope scope) { // cannot go backwards between scopes, for possible scope changes see #Scope if ((this.scope == Scope.GLASSFISH_JMX) || (scope == Scope.STANDALONE && (this.scope == Scope.GLASSFISH_JMX || this.scope == Scope.GLASSFISH_NO_JMX)) || this.scope == scope) { return; } this.scope = scope; fireScopeChanged(); }
/** * Initializes this provider with a given scope. If the given scope is different than the one this provider is * currently in and the transition between scopes is valid then a event is fired to all registered listeners. * * @param scope a scope to initialize this provider with */ public void initMOMForScope(LazyMOMProvider.Scope scope) { // cannot go backwards between scopes, for possible scope changes see #Scope if ((this.scope == Scope.GLASSFISH_JMX) || (scope == Scope.STANDALONE && (this.scope == Scope.GLASSFISH_JMX || this.scope == Scope.GLASSFISH_NO_JMX)) || this.scope == scope) { return; } this.scope = scope; fireScopeChanged(); }
/** * Initializes this provider with a given scope. If the given scope is different than the one this provider is * currently in and the transition between scopes is valid then a event is fired to all registered listeners. * * @param scope a scope to initialize this provider with */ public void initMOMForScope(LazyMOMProvider.Scope scope) { // cannot go backwards between scopes, for possible scope changes see #Scope if ((this.scope == Scope.GLASSFISH_JMX) || (scope == Scope.STANDALONE && (this.scope == Scope.GLASSFISH_JMX || this.scope == Scope.GLASSFISH_NO_JMX)) || this.scope == scope) { return; } this.scope = scope; fireScopeChanged(); }