synergynetframework.appsystem.table.appregistry
Class ApplicationInfo

java.lang.Object
  extended by synergynetframework.appsystem.table.appregistry.ApplicationInfo

public class ApplicationInfo
extends java.lang.Object

The Class ApplicationInfo.


Field Summary
static java.lang.String APPLICATION_TYPE_CLIENT
          The Constant APPLICATION_TYPE_CLIENT.
static java.lang.String APPLICATION_TYPE_CONTROLLER
          The Constant APPLICATION_TYPE_CONTROLLER.
static java.lang.String APPLICATION_TYPE_PROJECTOR
          The Constant APPLICATION_TYPE_PROJECTOR.
static java.lang.String REACTIVATEPOLICY_RESTART
          The Constant REACTIVATEPOLICY_RESTART.
static java.lang.String REACTIVATEPOLICY_RESUME
          The Constant REACTIVATEPOLICY_RESUME.
 
Constructor Summary
ApplicationInfo(java.lang.String classname, java.lang.String applicationName, java.lang.String versionString, java.lang.String reactivatePolicy)
          Instantiates a new application info.
 
Method Summary
 java.lang.String getApplicationName()
          Gets the application name.
 java.lang.String getApplicationType()
          Gets the application type.
 java.lang.String getApplicationVersion()
          Gets the application version.
 java.lang.String getIconResourceName()
          Gets the icon resource name.
 SynergyNetApp getNewInstance()
          Gets the new instance.
 java.lang.String getReactivatePolicy()
          Gets the reactivate policy.
 java.lang.Class<?> getTheClass()
          The class for the SynergyNet application this ApplicationInfo represents.
 java.lang.String getTheClassName()
          Equivalent to calling getTheClass().getName()
 void setApplicationType(java.lang.String applicationType)
          Sets the application type.
 void setIconResource(java.lang.String iconResource)
          Sets the icon resource.
 void setShowIcon(boolean b)
          Sets the show icon.
 void setUUID(java.lang.String uuid)
          Sets the uuid.
 boolean showInMenus()
          Show in menus.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

APPLICATION_TYPE_CLIENT

public static final java.lang.String APPLICATION_TYPE_CLIENT
The Constant APPLICATION_TYPE_CLIENT.

See Also:
Constant Field Values

APPLICATION_TYPE_CONTROLLER

public static final java.lang.String APPLICATION_TYPE_CONTROLLER
The Constant APPLICATION_TYPE_CONTROLLER.

See Also:
Constant Field Values

APPLICATION_TYPE_PROJECTOR

public static final java.lang.String APPLICATION_TYPE_PROJECTOR
The Constant APPLICATION_TYPE_PROJECTOR.

See Also:
Constant Field Values

REACTIVATEPOLICY_RESTART

public static final java.lang.String REACTIVATEPOLICY_RESTART
The Constant REACTIVATEPOLICY_RESTART.

See Also:
Constant Field Values

REACTIVATEPOLICY_RESUME

public static final java.lang.String REACTIVATEPOLICY_RESUME
The Constant REACTIVATEPOLICY_RESUME.

See Also:
Constant Field Values
Constructor Detail

ApplicationInfo

public ApplicationInfo(java.lang.String classname,
                       java.lang.String applicationName,
                       java.lang.String versionString,
                       java.lang.String reactivatePolicy)
                throws java.lang.ClassNotFoundException
Instantiates a new application info.

Parameters:
classname - the classname
applicationName - the application name
versionString - the version string
reactivatePolicy - the reactivate policy
Throws:
java.lang.ClassNotFoundException - the class not found exception
Method Detail

getApplicationName

public java.lang.String getApplicationName()
Gets the application name.

Returns:
the application name

getApplicationType

public java.lang.String getApplicationType()
Gets the application type.

Returns:
the application type

getApplicationVersion

public java.lang.String getApplicationVersion()
Gets the application version.

Returns:
the application version

getIconResourceName

public java.lang.String getIconResourceName()
Gets the icon resource name.

Returns:
the icon resource name

getNewInstance

public SynergyNetApp getNewInstance()
                             throws java.lang.InstantiationException,
                                    java.lang.IllegalAccessException,
                                    java.lang.ClassNotFoundException,
                                    java.lang.SecurityException,
                                    java.lang.NoSuchMethodException,
                                    java.lang.IllegalArgumentException,
                                    java.lang.reflect.InvocationTargetException
Gets the new instance.

Returns:
the new instance
Throws:
java.lang.InstantiationException - the instantiation exception
java.lang.IllegalAccessException - the illegal access exception
java.lang.ClassNotFoundException - the class not found exception
java.lang.SecurityException - the security exception
java.lang.NoSuchMethodException - the no such method exception
java.lang.IllegalArgumentException - the illegal argument exception
java.lang.reflect.InvocationTargetException - the invocation target exception

getReactivatePolicy

public java.lang.String getReactivatePolicy()
Gets the reactivate policy.

Returns:
the reactivate policy

getTheClass

public java.lang.Class<?> getTheClass()
The class for the SynergyNet application this ApplicationInfo represents.

Returns:
the the class

getTheClassName

public java.lang.String getTheClassName()
Equivalent to calling getTheClass().getName()

Returns:
the the class name

setApplicationType

public void setApplicationType(java.lang.String applicationType)
Sets the application type.

Parameters:
applicationType - the new application type

setIconResource

public void setIconResource(java.lang.String iconResource)
Sets the icon resource.

Parameters:
iconResource - the new icon resource

setShowIcon

public void setShowIcon(boolean b)
Sets the show icon.

Parameters:
b - the new show icon

setUUID

public void setUUID(java.lang.String uuid)
Sets the uuid.

Parameters:
uuid - the new uuid

showInMenus

public boolean showInMenus()
Show in menus.

Returns:
true, if successful

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object