com.novell.application.console.snapin.scope
Class GlobalScope

java.lang.Object
  |
  +--com.novell.application.console.snapin.scope.GlobalScope
All Implemented Interfaces:
Scope, java.io.Serializable

public class GlobalScope
extends java.lang.Object
implements Scope

Defines a scope that is global.

Snap-ins of all types may be registered with the GlobalScope scope. When registered, the functionality provided by these snap-ins are active at all times (even when no objects have been selected in the object browser).

The following code snippet is an example of registering a namespace snap-in with the GlobalScope scope.


      public RegistrationItem[] getRegistration()
      {
          GlobalScope scope;
          scope = new GlobalScope(Shell.SNAPIN_NAMESPACE);
          return new RegistrationItem[]
          {
              new RegistrationItem(scope, getClass().getName())
          };
      }
 

See Also:
Scope

Constructor Summary
GlobalScope(java.lang.Object snapinType)
          Builds a GlobalScope for the specified snapinType.
 
Method Summary
 java.lang.Object getSnapinType()
          Returns the snap-in type object that was passed in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalScope

public GlobalScope(java.lang.Object snapinType)
Builds a GlobalScope for the specified snapinType.

The snap-in types that can be used for the GlobalScope are:

Parameters:
snapinType - The type of the snap-in as defined above.
Method Detail

getSnapinType

public java.lang.Object getSnapinType()
Returns the snap-in type object that was passed in the constructor.
Specified by:
getSnapinType in interface Scope
Returns:
The snap-in type object.
See Also:
Scope


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.