public class FwkApplicationBus extends java.lang.Object implements java.io.Serializable, FwkApplicationBusInterface
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
BUSDEFAULTNAME
FWK Application bus default name.
|
static java.lang.String |
BUSNAME
Application bus name.
|
static java.lang.String |
BUSNAMEKEY
FWK Application bus key.
|
static java.lang.String |
version |
Constructor and Description |
---|
FwkApplicationBus() |
Modifier and Type | Method and Description |
---|---|
static FwkApplicationInterface |
fetchEternal(java.lang.String applName)
Fetch an eternal application.
|
static FwkApplicationInterface |
findApplication(java.lang.String applicationName)
Get the application with the requested name.
|
static FwkApplicationInterface |
findApplication(java.lang.String applicationName,
java.awt.datatransfer.DataFlavor[] dataFlavor)
Get the specified application from the application bus.
|
static java.lang.Object |
findDataItem(java.lang.String applicationName)
Get the application with the requested name.
|
static FwkApplicationInterface[] |
findMultipleApplications(java.lang.String applicationName)
find multiple applications with the requested name.
|
static FwkApplicationInterface[] |
findMultipleApplications(java.lang.String applicationName,
java.awt.datatransfer.DataFlavor[] dataFlavor)
Find multiple application on the application bus.
|
static java.lang.Object |
findMultipleDataItems(java.lang.String applicationName)
Get the application with the requested name.
|
static java.lang.String |
getUniqueName(java.lang.String applicationName)
Get a unique registry name.
|
java.lang.String |
getVersion() |
static boolean |
isEternal(java.lang.String applicationName)
Returns a boolean whether or not the requested application
is registered eternal.
|
static boolean |
isRegistered(FwkApplicationInterface appl)
Returns a boolean whether or not the requested application
is already registered.
|
static boolean |
isRegistered(java.lang.String applicationName)
Returns a boolean whether or not the requested application
is already registered.
|
static boolean |
launch(java.lang.String resources)
Start and interpret resources.
|
static java.lang.Object |
loadClass(java.lang.String name)
Load the class with the specified name and get an
instance of that class.
|
static java.lang.String |
register(FwkApplicationInterface application)
Register a new application.
|
static java.lang.String |
register(FwkApplicationInterface application,
java.awt.datatransfer.DataFlavor[] dataFlavor)
Register a new application under a special data flavor.
|
static void |
unregister(FwkApplicationInterface application)
Unregister the application and exit if the last
application was unregistered.
|
public static final java.lang.String version
public static final java.lang.String BUSDEFAULTNAME
public static final java.lang.String BUSNAMEKEY
public static java.lang.String BUSNAME
public java.lang.String getVersion()
public static FwkApplicationInterface findApplication(java.lang.String applicationName)
applicationName
- The name of the requested application.public static FwkApplicationInterface findApplication(java.lang.String applicationName, java.awt.datatransfer.DataFlavor[] dataFlavor)
applicationName
- The name of searched application.dataFlavor
- The data flavor of the requested applicationFwkApplicationProducer
public static java.lang.Object findDataItem(java.lang.String applicationName)
applicationName
- The name of the requested application.public static FwkApplicationInterface[] findMultipleApplications(java.lang.String applicationName)
applicationName
- The name of the requested application.public static FwkApplicationInterface[] findMultipleApplications(java.lang.String applicationName, java.awt.datatransfer.DataFlavor[] dataFlavor)
applicationName
- The name of searched application.dataFlavor
- The data flavor of the requested applicationFwkApplicationProducer
public static java.lang.Object findMultipleDataItems(java.lang.String applicationName)
applicationName
- The name of the requested application.public static boolean isEternal(java.lang.String applicationName)
applicationName
- The name of the application to be checked.public static boolean isRegistered(java.lang.String applicationName)
applicationName
- The name of the application to be checked.public static boolean isRegistered(FwkApplicationInterface appl)
application
- The application to be checked.public static java.lang.String getUniqueName(java.lang.String applicationName)
applicationName
- The application base name.public static java.lang.String register(FwkApplicationInterface application) throws FwkException
applicationName
- The basic application name.application
- The application object.FwkException
- if the application is eternal and already registered.public static java.lang.String register(FwkApplicationInterface application, java.awt.datatransfer.DataFlavor[] dataFlavor) throws FwkException
applicationName
- The basic application name.application
- The application object.dataFlavor
- The data flavor array.FwkException
public static void unregister(FwkApplicationInterface application)
applicationName
- The name of the application to be unregistered.public static FwkApplicationInterface fetchEternal(java.lang.String applName)
applName
- The name of the eternal application.FwkException
- if the application isn't an eternal application.public static java.lang.Object loadClass(java.lang.String name) throws java.lang.Throwable
name
- The name of the class to be loaded.FwkException
- if not possible to get an instance.java.lang.Throwable
public static boolean launch(java.lang.String resources) throws FwkException
resource
- The comma or space separated list of resource to
be interpreted and started.FwkException.
FwkException