|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ilog.server.jcomp.MvComponentFactory
Category: Dynamic view-related class
This class is the factory class used to create instances of the MvComponent
class. Any component of a dynamic view server is implemented by an instance
of the MvComponent type or of one of its subtypes. Such an instance is
automatically created on the component side each time this process connects
to a dynamic view server. By subclassing MvComponentFactory
and overriding the newInstance function, you can create your
own subtype of MvComponent.
MvComponent,
MvComponent.Connect(java.lang.String, java.lang.String)| Constructor Summary | |
MvComponentFactory()
The construction of an IlsMvComponentFactory object is triggered either by the function GetSingleton or by the construction of a subtype object. |
|
| Method Summary | |
java.net.InetAddress |
getHostName()
This method is used by Rogue Wave Server when a component connects to a server. |
java.lang.String |
getInetId()
This method is used by Rogue Wave Server when a component connects to a server. |
int |
getProcessId()
This method is used by Rogue Wave Server when a component connects to a server. |
static MvComponentFactory |
GetSingleton()
This method returns the component factory. |
static MvComponentFactory |
GetSingletonHandle()
This method returns a handle to the class singleton. |
int |
getUserId()
This method is used by Rogue Wave Server when a component connects to a server. |
MvValue[] |
getUserInfo()
This method is called by the component to send user info to the server. |
java.lang.String |
getUserName()
This method is used by Rogue Wave Server when a component connects to a server. |
static MvComponent |
Instanciate()
This method is called by Rogue Wave Server to create a new instance of the class MvComponent. |
MvComponent |
newInstance()
This method is called by the Instanciate function on the
class singleton to create a new instance of an IlsMvComponent class or of
a derived class. |
static MvComponentFactory |
SetSingleton(MvComponentFactory f)
Declares the component factory singleton. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MvComponentFactory()
| Method Detail |
public MvComponent newInstance()
Instanciate function on the
class singleton to create a new instance of an IlsMvComponent class or of
a derived class. It must be overridden if you want Rogue Wave Server to create
instances of a specific derived class.GetSingleton(),
Instanciate()public java.lang.String getUserName()
"user.name".null.Propertiespublic int getUserId()
public java.net.InetAddress getHostName()
public java.lang.String getInetId()
public int getProcessId()
public MvValue[] getUserInfo()
public static MvComponent Instanciate()
MvComponent. It calls the newInstance
function on the class singleton.GetSingleton()public static MvComponentFactory GetSingleton()
MvComponentFactory
is automatically created, declared as the class singleton using the
SetSingleton member function and returned as the function
result.SetSingleton(ilog.server.jcomp.MvComponentFactory)public static MvComponentFactory GetSingletonHandle()
null.public static MvComponentFactory SetSingleton(MvComponentFactory f)
f - The new factory, can be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||