This method creates a SyncConnector and uses parameters
public ISyncConnector create1to1SyncConnector(ISyncSender sender, ISyncReceiver receiver) throws ConnectorException
{
sender.connect(receiver);
return new JavaLocal1To1SyncConnector(sender, receiver);
}
public IUnknown createInstance(String classId, String primaryKey) {
IUnknown component = null;
if (classId.equalsIgnoreCase(StatisticsComponent.STATISTICSCOMPONENT_ID))
component = new StatisticsComponent(primaryKey);
else if (classId.equalsIgnoreCase(StatisticsConsumerComponent.STATISTICSCONSUMERCOMPONENT_ID))
component = new StatisticsConsumerComponent(primaryKey);
else if (classId.equalsIgnoreCase(StatisticsComponentSyncMessage.STATISTICSCOMPONENTMESSAGE_ID))
component = new StatisticsComponentSyncMessage(primaryKey);
else if (classId.equalsIgnoreCase(StatisticsConsumerComponentSyncMessage.STATISTICSCONSUMERCOMPONENTMESSAGE_ID))
component = new StatisticsConsumerComponentSyncMessage(primaryKey);
else if (classId.equalsIgnoreCase(StatisticsComponentAssyncMessage.STATISTICSCOMPONENTMESSAGE_ID))
component = new StatisticsComponentAssyncMessage(primaryKey);
else if (classId.equalsIgnoreCase(StatisticsConsumerComponentAssyncMessage.STATISTICSCONSUMERCOMPONENTMESSAGE_ID))
component = new StatisticsConsumerComponentAssyncMessage(primaryKey);
if (messageFactory !
This class casts JavaLocal1to1AssyncConector and
implements the interface IAssyncSyncConnector
This class utilizes two attributes:
One sender (ISyncAssyncSender) and one receiver (ISyncAssyncReceiver)
This class casts JavaLocal1to1SyncConector and
implements the interface ISyncConnector
This class utilizes two attributes:
One sender (ISyncSender) and one receiver (ISyncReceiver)
The constructor receives two parameters and it can to generate an exception
public JavaLocal1To1SyncConnector(ISyncSender sender, ISyncReceiver receiver) throws ConnectorException
{
if (receiver == null)
throw new ConnectorException("connection sender cannot be null");
else if (sender == null)
throw new ConnectorException("connection receiver cannot be null");
this.sender = sender;
this.receiver = receiver;
}
Case receiver or sender be nulls an exception message will be generate
This class creates a local component context
****it's instanced on ComponentContextFactory like DEFAULT_CONTEXT******
**** May be we can call this class DefaultJavaLocalContext ********
slideRight() -
Method in interface games.simulation.flayer.interfaces.objectsFamily.airPlane.AirPlane
start() -
Method in class examples.message.assyncpingpong01.Ping
This method initializes a creating message
and send through of the broker
public void start()
{
System.out.println("ping");
IMessage message = factory.createMessage("ping", this);
broker.dispatchAssyncMessage(thePong, message);
}
start() -
Method in class examples.message.assyncpingpong02.Ping
start() -
Method in class examples.message.syncpingpong.Ping