java.lang.Objectorg.objectweb.telosys.common.data.ApplicationDataHolder
Static data providers holder, used to store application scope data
Different kinds of data providers can be hold :
Constructor Summary | |
ApplicationDataHolder()
|
Method Summary | |
static DataSet |
getDataSet(java.lang.String sName)
Returns the DataSet managed by the DataSetProvider stored with the given name |
static DataSetProvider |
getDataSetProvider(java.lang.String sName)
Returns the DataSetProvider registered with the given name |
static ListItemProvider |
getListItemProvider(java.lang.String sName)
Returns the "ListItem Provider" registered with the given name |
static java.lang.Object |
getObject(java.lang.String sName)
Returns the object registered with the given name |
static void |
registerDataSetProvider(java.lang.String sName,
DataSetProvider appDataSet)
Register/store an Application DataSet provider with a symbolic name |
static void |
registerListItemProvider(java.lang.String sName,
ListItemProvider listItemProvider)
Register/store a ListItem provider with a symbolic name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ApplicationDataHolder()
Method Detail |
public static void registerDataSetProvider(java.lang.String sName, DataSetProvider appDataSet) throws TelosysException
sName
- :
the symbolic nameappDataSet
- :
the Application DataSet instance
TelosysException
public static void registerListItemProvider(java.lang.String sName, ListItemProvider listItemProvider) throws TelosysException
sName
- :
the symbolic namelistItemProvider
- :
the ListItem provider instance
TelosysException
public static java.lang.Object getObject(java.lang.String sName)
sName
- :
the symbolic name
public static DataSetProvider getDataSetProvider(java.lang.String sName)
sName
- :
the symbolic name
public static DataSet getDataSet(java.lang.String sName)
sName
- :
the symbolic name
public static ListItemProvider getListItemProvider(java.lang.String sName)
sName
- :
the symbolic name