|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultipleDataConsumer
MultipleDataConsumer
is data consumer, which is able to process
at the same time several dynamic data sources by allocation own simple data
consumer for each source.
Method Summary | ||
---|---|---|
|
getConsumer(java.lang.String name,
java.lang.Class<D> type)
Returns data consumer of specified data consumer type and for specified string name. |
|
DataConsumer[] |
getConsumers()
Returns all data consumers created by this multiple data consumer. |
|
java.lang.Class<DataConsumer>[] |
getSupportedConsumerTypes()
Returns array of supported data consumer types, which can be used as parameter and returnned with getConsumer(String,Class)
method. |
|
void |
releaseConsumer(DataConsumer consumer)
Requests frm this multiple consumer to release all resources connectet to provided single consumer. |
Method Detail |
---|
<D extends DataConsumer> D getConsumer(java.lang.String name, java.lang.Class<D> type)
Returns data consumer of specified data consumer type and for specified string name. The organization of data is indicated with name (list, table, tree organization). Multiple consumer might interprete this by it's own preferences or abilities. The name of returned consuer must equals to provided name.
Example. Names: PS1/current, PS1/readback, PS2/current, PS2/readback migth table displayer interprete as two rows (PS1 and PS2) wtih two columns (current and readback). Tree displayer migth interprete this names as two branches with two subbranches.
Note that name is not fixed consumer property. Some displayers migth expect for name to be same as DISPLAY_NAME and is changed if display name is changed.
name
- organized data nametype
- required data soncumer type
void releaseConsumer(DataConsumer consumer)
consumer
- the consumer to be releasedDataConsumer[] getConsumers()
java.lang.Class<DataConsumer>[] getSupportedConsumerTypes()
getConsumer(String,Class)
method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |