|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.virtuosotechnologies.lib.platform.PlatformManager
Manager for PlatformProviders and PlatformEvents. This class is a general low-level class intended to be platform-agnostic. That is, we don't expect to have to modify this API in the future. Platform-specific helper methods and constants should be added to the PlatformUtils class.
Method Summary | |
static void |
addPlatformListener(PlatformListener listener)
Add a listener for platform events |
static boolean |
addPlatformProvider(String name,
ClassLoader loader)
Add a platform provider. |
static void |
firePlatformEvent(PlatformEvent event)
Fire a platform event |
static PlatformProvider |
getNamedPlatformProvider(String name)
Returns the platform provider with the given name if it is available, or null if it is not. |
static void |
removePlatformListener(PlatformListener listener)
Remove a listener for platform events |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean addPlatformProvider(String name, ClassLoader loader)
name
- name of the providerloader
- ClassLoader from which to load the provider, or null to use the default ClassLoader.
public static PlatformProvider getNamedPlatformProvider(String name)
Note that even if we're running on that platform, this may still return null if the platform provider wasn't compiled in by whoever built this program-- in such a case, functionality specific to that platform will still not be available.
public static void addPlatformListener(PlatformListener listener)
listener
- listener to addpublic static void removePlatformListener(PlatformListener listener)
listener
- listener to removepublic static void firePlatformEvent(PlatformEvent event)
event
- the event to fire
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |