com.accendia.iris.client
Class ApplicationDescriptor

java.lang.Object
  extended by com.accendia.iris.client.ApplicationDescriptor

public class ApplicationDescriptor
extends java.lang.Object

This class encapsulates remote application metadata. The client may declare application metadata in order to prevent the ServerContext from invoking the server at startup and reducing initialization time. This is useful when deploying on networks with high latency.

If the client registers an ApplicationDescriptor that doesn't correspond to the remote application structure the results are impredictable. This functionality must be used with extra care.

Since:
2.2

Constructor Summary
ApplicationDescriptor()
          Initializes the ApplicationDescriptor object.
 
Method Summary
 java.lang.Class[] getCallbackInterfaces()
           
 java.lang.Class[][] getCommandInterfaces()
           
 java.lang.Class[] getCommandInterfaces(java.lang.String commandName)
           
 java.lang.String[] getCommandNames()
           
 java.lang.Class[][] getFactoryInterfaces()
           
 java.lang.Class[] getFactoryInterfaces(java.lang.String factoryName)
           
 java.lang.String[] getFactoryNames()
           
 void setCallbackInterfaces(java.lang.Class[] callbackInterfaces)
          Declares the list of callback interfaces.
 void setCommandInterfaces(java.lang.String commandName, java.lang.Class[] interfaces)
          Declares a remote command.
 void setFactoryInterfaces(java.lang.String factoryName, java.lang.Class[] interfaces)
          Declares a remote command factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationDescriptor

public ApplicationDescriptor()
Initializes the ApplicationDescriptor object.

Method Detail

setCommandInterfaces

public void setCommandInterfaces(java.lang.String commandName,
                                 java.lang.Class[] interfaces)
Declares a remote command. The list of implemented interfaces must be provided in the same order as declared in the command implementation.

Parameters:
commandName - The remote command name
interfaces - The list of implemented interfaces by the command

setFactoryInterfaces

public void setFactoryInterfaces(java.lang.String factoryName,
                                 java.lang.Class[] interfaces)
Declares a remote command factory. The list of implemented interfaces must be provided in the same order as declared in the factory implementation.

Parameters:
factoryName - The remote factory name
interfaces - The list of implemented interfaces by the factory

setCallbackInterfaces

public void setCallbackInterfaces(java.lang.Class[] callbackInterfaces)
Declares the list of callback interfaces.

Parameters:
callbackInterfaces - The list of callback interfaces

getCommandNames

public java.lang.String[] getCommandNames()
Returns:
The remote application command names

getCommandInterfaces

public java.lang.Class[] getCommandInterfaces(java.lang.String commandName)
Parameters:
commandName - The command name
Returns:
The list of interfaces implemented by the command

getCommandInterfaces

public java.lang.Class[][] getCommandInterfaces()
Returns:
The list of interface lists implemented by all remote commands

getFactoryNames

public java.lang.String[] getFactoryNames()
Returns:
The remote application factory names

getFactoryInterfaces

public java.lang.Class[] getFactoryInterfaces(java.lang.String factoryName)
Parameters:
factoryName - The factory name
Returns:
The list of interfaces implemented by the factory

getFactoryInterfaces

public java.lang.Class[][] getFactoryInterfaces()
Returns:
The list of interfaces lists implemented by all remote factories

getCallbackInterfaces

public java.lang.Class[] getCallbackInterfaces()
Returns:
The client callback interfaces