com.novell.application.console.snapin
Interface Template


public interface Template

Provides the participating snap-ins instance data when implementing multiple snap-ins in a single class.

The Template interface can be implemented when you have several snap-in items that are largely the same and you do not want to create a separate class for each. You can create all the snap-in items in the same class by implementing the setInstanceData() method. ConsoleOne then passes the instanceData to the snap-in that was obtained from the RegistrationItem constructor when the getRegistration() method is called for the snap-in. This gives the snap-in a chance to uniquely identify itself in the java class containing other similar snap-ins.


Method Summary
 void setInstanceData(java.lang.Object instanceData)
          Passes the participating snap-in the instanceData provided in its RegistrationItem[] information.
 

Method Detail

setInstanceData

public void setInstanceData(java.lang.Object instanceData)
Passes the participating snap-in the instanceData provided in its RegistrationItem[] information.

This instance data can be any information the snap-in needs to create itself.

Parameters:
instanceData - A reference to the instance data from the RegistrationItem[].
See Also:
RegistrationItem.RegistrationItem(com.novell.application.console.snapin.scope.Scope, java.lang.String)


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