|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.novell.application.console.snapin.RegistrationItem
Specifies to ConsoleOne the conditions under which snap-ins are loaded.
The specified conditions are based on the snap-in's Scope. The Scope narrows down the circumstances under which the snap-in will appear. The class name is the name of the snap-in. The instance data is optional and may be used to instantiate multiple instances of the same snap-in, making each instance of the snap-in appear to be different (see the Template interface for further details).
Template,
Registration| Constructor Summary | |
RegistrationItem(Scope theScope,
java.lang.String className)
Builds a RegistrationItem based on the scope and the snap-in full class name. |
|
RegistrationItem(Scope theScope,
java.lang.String className,
java.lang.Object instanceData)
Builds a RegistrationItem based on the scope, the snap-in full class name, and instance data. |
|
| Method Summary | |
java.lang.String |
getClassName()
Returns the name of the participating snap-in class. |
java.lang.Object |
getInstanceData()
Returns the instance data as an Object. |
java.lang.String |
getRegistrarName()
Gets the name of the registrar for this registration item. |
Scope |
getScope()
Returns the scope of the participating snap-in. |
void |
setRegistrarName(java.lang.String registrarName)
Sets the name of the registrar for this registration item. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RegistrationItem(Scope theScope,
java.lang.String className)
The resulting RegistrationItem array contains information identifying what kind of snap-in each object is, where to find it, and when ConsoleOne will load the snap-in.
theScope - Identifies the conditions under which the snap-in will
appear in ConsoleOne.className - A string containing the full name of the snap-in class
that is to be registered to ConsoleOne.Scope
public RegistrationItem(Scope theScope,
java.lang.String className,
java.lang.Object instanceData)
The resulting RegistrationItem contains information identifying what kind of snap-in each object is, where to find it, and when ConsoleOne will load the snap-in.
This constructor has an additional parameter, instanceData. The instanceData parameter may contain any Java object that will be passed to the snap-in through the Snapin.setInstanceData(Object instanceData) method, which is defined in the Template interface.
Note: Any time you use the instanceData parameter in RegistrationItem, you must implement the Template interface in the snap-in you create in order to retrieve the instanceData object.
theScope - Identifies the conditions under which the snap-in will
appear in ConsoleOne.className - A string containing the full name of the snap-in class
that is to be registered to ConsoleOne.instanceData - May contain any Java object.Scope,
Template.setInstanceData(java.lang.Object)| Method Detail |
public Scope getScope()
public java.lang.String getClassName()
public void setRegistrarName(java.lang.String registrarName)
The - name of the registrar for this registration item.public java.lang.String getRegistrarName()
public java.lang.Object getInstanceData()
The getInstanceData() method returns the instance data object as defined and set by the setInstanceData() method in the Template interface.
Template.setInstanceData(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||