本文整理汇总了Java中com.arjuna.databroker.data.DataConsumer类的典型用法代码示例。如果您正苦于以下问题:Java DataConsumer类的具体用法?Java DataConsumer怎么用?Java DataConsumer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DataConsumer类属于com.arjuna.databroker.data包,在下文中一共展示了DataConsumer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (String.class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumerString;
else if (byte[].class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumerBytes;
else if (Map.class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumerMap;
else
return null;
}
示例2: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (dataClass == String.class)
return (DataConsumer<T>) _dataConsumerString;
else if (dataClass == byte[].class)
return (DataConsumer<T>) _dataConsumerBytes;
else if (dataClass == Map.class)
return (DataConsumer<T>) _dataConsumerMap;
else
return null;
}
示例3: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (Map.class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumer;
else
return null;
}
开发者ID:arjuna-technologies,项目名称:Apache-POI_DataBroker_PlugIn,代码行数:10,代码来源:XSSFStreamSheetToCSVDataProcessor.java
示例4: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (dataClass == File.class)
return (DataConsumer<T>) _dataConsumer;
else
return null;
}
开发者ID:arjuna-technologies,项目名称:Apache-POI_DataBroker_PlugIn,代码行数:10,代码来源:XSSFRowToJSONDataProcessor.java
示例5: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (File.class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumer;
else
return null;
}
开发者ID:arjuna-technologies,项目名称:FileSystem_DataBroker_PlugIn,代码行数:10,代码来源:FileReaderDataProcessor.java
示例6: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (String.class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumerString;
else if (byte[].class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumerBytes;
else
return null;
}
示例7: BasicDataProvider
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
public BasicDataProvider(DataFlowNode dataFlowNode)
{
logger.log(Level.FINE, "BasicDataProvider: " + dataFlowNode);
_dataFlowNode = dataFlowNode;
_dataConsumers = new LinkedList<DataConsumer<T>>();
}
示例8: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (dataClass == String.class)
return (DataConsumer<T>) _dataConsumer;
else
return null;
}
开发者ID:arjuna-technologies,项目名称:Interconnect_DataBroker_PlugIn,代码行数:10,代码来源:BinaryProviderDataSink.java
示例9: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (dataClass == Document.class)
return (DataConsumer<T>) _dataConsumer;
else
return null;
}
开发者ID:arjuna-technologies,项目名称:Interconnect_DataBroker_PlugIn,代码行数:10,代码来源:DOMDocumentPushDataSink.java
示例10: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (dataClass == Serializable.class)
return (DataConsumer<T>) _dataConsumer;
else
return null;
}
开发者ID:arjuna-technologies,项目名称:Interconnect_DataBroker_PlugIn,代码行数:10,代码来源:SerializableObjectProviderDataSink.java
示例11: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (dataClass == Object.class)
return (DataConsumer<T>) _batchDataConsumer;
else
return null;
}
示例12: getSinkConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
private <T> DataConsumer<T> getSinkConsumer(DataFlowNode sinkDataFlowNode, Class<T> dataClass)
{
if (sinkDataFlowNode instanceof DataProcessor)
return ((DataProcessor) sinkDataFlowNode).getDataConsumer(dataClass);
else if (sinkDataFlowNode instanceof DataService)
return ((DataService) sinkDataFlowNode).getDataConsumer(dataClass);
else if (sinkDataFlowNode instanceof DataStore)
return ((DataStore) sinkDataFlowNode).getDataConsumer(dataClass);
else if (sinkDataFlowNode instanceof DataSink)
return ((DataSink) sinkDataFlowNode).getDataConsumer(dataClass);
else
return null;
}
示例13: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
if (dataClass.equals(String.class))
return (DataConsumer<T>) _dataConsumer;
else
return null;
}
示例14: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
logger.log(Level.FINE, "DummyDataProcessor.getDataConsumer");
if (Object.class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumer;
else
return null;
}
开发者ID:arjuna-technologies,项目名称:TestSupport_DataBroker_Utilities,代码行数:12,代码来源:DummyDataProcessor.java
示例15: getDataConsumer
import com.arjuna.databroker.data.DataConsumer; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <T> DataConsumer<T> getDataConsumer(Class<T> dataClass)
{
logger.log(Level.FINE, "DummyDataSink.getDataConsumer");
if (Object.class.isAssignableFrom(dataClass))
return (DataConsumer<T>) _dataConsumer;
else
return null;
}