com::cosylab::acs::maci::plug::ComponentProxy Class Reference

Inheritance diagram for com::cosylab::acs::maci::plug::ComponentProxy:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::acs::maci::plug::ComponentProxy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ComponentProxy (Object reference)
 ComponentProxy (String name, Object reference)
boolean doesImplement (String type)
void construct () throws RemoteException
void destruct () throws RemoteException
String[] implementedInterfaces ()
java.lang.Object getObject ()
String toString ()

Protected Attributes

String ior

Private Member Functions

void checkConstructable ()
String[] resolveImplementedInterfaces ()
void writeObject (ObjectOutputStream stream) throws IOException
void readObject (ObjectInputStream stream) throws IOException, ClassNotFoundException

Private Attributes

String name = defaultName
String[] interfaces
Object reference

Static Private Attributes

static final long serialVersionUID = 4012133222547881699L
static final String defaultName = "<unnamed>"

Detailed Description

CORBA Component Proxy.

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@

Constructor & Destructor Documentation

com::cosylab::acs::maci::plug::ComponentProxy::ComponentProxy ( Object  reference  )  [inline]

Construct an implementaiton of Component.

Parameters:
reference CORBA reference of Component, non-null

References ior, and com::cosylab::acs::maci::plug::CORBAReferenceSerializator::serialize().

com::cosylab::acs::maci::plug::ComponentProxy::ComponentProxy ( String  name,
Object  reference 
) [inline]

Construct an implementaiton of Component.

Parameters:
name name of the Component.
reference CORBA reference of Component, non-null

References checkConstructable().


Member Function Documentation

void com::cosylab::acs::maci::plug::ComponentProxy::checkConstructable (  )  [inline, private]

Check if Component implements maci::Constructable interface.

Referenced by ComponentProxy(), and readObject().

void com::cosylab::acs::maci::plug::ComponentProxy::construct (  )  throws RemoteException [inline]
void com::cosylab::acs::maci::plug::ComponentProxy::destruct (  )  throws RemoteException [inline]
boolean com::cosylab::acs::maci::plug::ComponentProxy::doesImplement ( String  type  )  [inline]
java.lang.Object com::cosylab::acs::maci::plug::ComponentProxy::getObject (  )  [inline]

Returns the object.

Returns:
Object

Implements com::cosylab::acs::maci::Component.

References reference.

String [] com::cosylab::acs::maci::plug::ComponentProxy::implementedInterfaces (  )  [inline]
void com::cosylab::acs::maci::plug::ComponentProxy::readObject ( ObjectInputStream  stream  )  throws IOException, ClassNotFoundException [inline, private]

Reconstitute the ComponentProxy instance from a stream (that is, deserialize it).

References checkConstructable(), com::cosylab::acs::maci::plug::CORBAReferenceSerializator::deserialize(), interfaces, ior, name, and reference.

String [] com::cosylab::acs::maci::plug::ComponentProxy::resolveImplementedInterfaces (  )  [inline, private]

Returns list of implemented interfaces.

Parameters:
list of implemented interfaces.

References interfaces, and reference.

Referenced by implementedInterfaces().

String com::cosylab::acs::maci::plug::ComponentProxy::toString (  )  [inline]

Returns a single-line rendition of this instance into text.

Returns:
internal state of this instance

References name, and reference.

void com::cosylab::acs::maci::plug::ComponentProxy::writeObject ( ObjectOutputStream  stream  )  throws IOException [inline, private]

Save the state of the ComponentProxy instance to a stream (that is, serialize it).

References interfaces, ior, and name.


Member Data Documentation

final String com::cosylab::acs::maci::plug::ComponentProxy::defaultName = "<unnamed>" [static, private]

Default Component name.

non-null if Component implements maci::Constructable. List of implemented interfaces.

Referenced by implementedInterfaces(), readObject(), resolveImplementedInterfaces(), and writeObject().

Cached serialized reference.

Referenced by ComponentProxy(), readObject(), and writeObject().

Component name, can be null.

Referenced by readObject(), toString(), and writeObject().

final long com::cosylab::acs::maci::plug::ComponentProxy::serialVersionUID = 4012133222547881699L [static, private]

Serial version UID.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2