com.novell.application.console.snapin
Interface Registration


public interface Registration

Provides for the registration of snap-ins to ConsoleOne.

You can register your snap-in in three ways:

Registering your snap-ins within each individual snap-in class makes the code easier to read, however registering snap-ins in a separate registration class is more efficient at startup time. For a more complete description of snap-in registration, go the the "Registering Your Snap-ins" tasks topic in the ConsoleOne Developer's Guide.


Method Summary
 RegistrationItem[] getRegistration()
          Returns a RegistrationItem array, which the shell uses to categorize the snap-ins based on the content of the Scope and to instantiate the snap-ins.
 

Method Detail

getRegistration

public RegistrationItem[] getRegistration()
Returns a RegistrationItem array, which the shell uses to categorize the snap-ins based on the content of the Scope and to instantiate the snap-ins.

Following is an example of the getRegistration() implementation.

     public RegistrationItem[] getRegistration()
     {
         return new RegistrationItem[]
         {
             new RegistrationItem(new NamespaceContainerTypesScope(Shell.SNAPIN_VIEW,
                 "com.novell.sample.snapins.filesystem"), getClass().getName())
         };
     }
 
Returns:
The array of items to be registered.
See Also:
RegistrationItem


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