Class REFLEXBean

java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--REFLEXBean
All Implemented Interfaces:
java.beans.BeanInfo, java.io.Serializable

public class REFLEXBean
extends java.beans.SimpleBeanInfo
implements java.io.Serializable

Bean to provide access to RComponents via CORBA/IIOP through the EJB container using the REFLEX RComponent stateless session bean.

This component is also available as an ActiveX TLB for use with Visual C++/Visual Basic (via the ActiveX bridge provided with the Java Plug-in). The bean exposes two properties, available via either ActiveX/Bean property sheets,

After setting these properties an application using the Bean/ActiveX component can invoke via IIOP functionality on the RComponent. The component also allows the user to get various information from RComponent's metalevel such as the current configuration and supported interfaces.

See Also:
Serialized Form

Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
REFLEXBean()
           
 
Method Summary
 java.lang.String displayConfiguration()
          Show the delegated methods available from this EJB.
 java.lang.Object execute(java.lang.String method)
          Execute some behaviour by delegating the method to an RComponent.
 java.lang.Object execute(java.lang.String method, java.lang.Object[] args)
          Execute some behaviour by delegating the method to an RComponent.
 java.lang.String getComponent()
          JavaBean accessor for the component property.
 java.lang.String getConfiguration()
          Get the user assigned descriptive name for the current component configuration.
 java.lang.String getHost()
          JavaBean accessor for the host property.
 java.awt.Image getIcon(int iconKind)
          Set the Icon to display in the BeanBox
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
          Set the property meta-information to display in the BeanBox
 void setComponent(java.lang.String component)
          JavaBean mutator for the component property.
 void setHost(java.lang.String host)
          JavaBean property mutator for the host property.
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

REFLEXBean

public REFLEXBean()
Method Detail

setHost

public void setHost(java.lang.String host)
JavaBean property mutator for the host property.
Parameters:
host - A String containing the name of the host machine to connect to. Addresses should be specified using the form iiop://[host]:[port] where [host] is the hostname and [port] is the port number of the machine where the EJB container is running (the RComponent session bean delegator will be running within the container at this address).

setComponent

public void setComponent(java.lang.String component)
JavaBean mutator for the component property.
Parameters:
component - A String containing the JNDI name of component to communicate with in the EJB container.

getHost

public java.lang.String getHost()
JavaBean accessor for the host property.
Returns:
A String containing the name of the host we are interacting with

getComponent

public java.lang.String getComponent()
JavaBean accessor for the component property.
Returns:
A String containing the JNDI name of the EJB where are interacting with

getConfiguration

public java.lang.String getConfiguration()
Get the user assigned descriptive name for the current component configuration.
Returns:
A string containing the name of the current component configuration.

execute

public java.lang.Object execute(java.lang.String method,
                                java.lang.Object[] args)
Execute some behaviour by delegating the method to an RComponent. Arguments are wrapped in the appropriate java.lang wrapper classes. For example, an int should be wrapped in a java.lang.Integer before passing it to the execute method as an array of Objects.
Parameters:
methodName - The name of the RComponent method to invoke.
args - An array of the arguments to pass to the method. All primitive Java types require wrapping in their appropriate java.lang object wrappers upon passing to the method.
Returns:
An Object containing the results of the delegation to the RComponent from this EJB.

displayConfiguration

public java.lang.String displayConfiguration()
Show the delegated methods available from this EJB.
Returns:
A formatted String displaying the available methods of the EJB from its delegations to the RComponent.

execute

public java.lang.Object execute(java.lang.String method)
Execute some behaviour by delegating the method to an RComponent.
Parameters:
methodName - The name of the RComponent method to invoke.
Returns:
An Object containing the results of the delegation to the RComponent from this EJB.

getIcon

public java.awt.Image getIcon(int iconKind)
Set the Icon to display in the BeanBox
Overrides:
getIcon in class java.beans.SimpleBeanInfo

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Set the property meta-information to display in the BeanBox
Overrides:
getPropertyDescriptors in class java.beans.SimpleBeanInfo