本文整理汇总了Java中com.espertech.esper.event.xml.BaseXMLEventType类的典型用法代码示例。如果您正苦于以下问题:Java BaseXMLEventType类的具体用法?Java BaseXMLEventType怎么用?Java BaseXMLEventType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BaseXMLEventType类属于com.espertech.esper.event.xml包,在下文中一共展示了BaseXMLEventType类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFactoryForType
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public static EventBeanFactory getFactoryForType(EventType type, EventAdapterService eventAdapterService) {
if (type instanceof WrapperEventType) {
WrapperEventType wrapperType = (WrapperEventType) type;
if (wrapperType.getUnderlyingEventType() instanceof BeanEventType) {
return new EventBeanFactoryBeanWrapped(wrapperType.getUnderlyingEventType(), wrapperType, eventAdapterService);
}
}
if (type instanceof BeanEventType) {
return new EventBeanFactoryBean(type, eventAdapterService);
}
if (type instanceof MapEventType) {
return new EventBeanFactoryMap(type, eventAdapterService);
}
if (type instanceof ObjectArrayEventType) {
return new EventBeanFactoryObjectArray(type, eventAdapterService);
}
if (type instanceof BaseXMLEventType) {
return new EventBeanFactoryXML(type, eventAdapterService);
}
if (type instanceof AvroSchemaEventType) {
return eventAdapterService.getEventAdapterAvroHandler().getEventBeanFactory(type, eventAdapterService);
}
throw new IllegalArgumentException("Cannot create event bean factory for event type '" + type.getName() + "': " + type.getClass().getName() + " is not a recognized event type or supported wrap event type");
}
示例2: getFactoryForType
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public static EventBeanFactory getFactoryForType(EventType type, EventAdapterService eventAdapterService) {
if (type instanceof WrapperEventType) {
WrapperEventType wrapperType = (WrapperEventType) type;
if (wrapperType.getUnderlyingEventType() instanceof BeanEventType) {
return new EventBeanFactoryBeanWrapped(wrapperType.getUnderlyingEventType(), wrapperType, eventAdapterService);
}
}
if (type instanceof BeanEventType) {
return new EventBeanFactoryBean(type, eventAdapterService);
}
if (type instanceof MapEventType) {
return new EventBeanFactoryMap(type, eventAdapterService);
}
if (type instanceof ObjectArrayEventType) {
return new EventBeanFactoryObjectArray(type, eventAdapterService);
}
if (type instanceof BaseXMLEventType) {
return new EventBeanFactoryXML(type, eventAdapterService);
}
throw new IllegalArgumentException("Cannot create event bean factory for event type '" + type.getName() + "': " + type.getClass().getName() + " is not a recognized event type or supported wrap event type");
}
示例3: getShellForType
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public static EventBeanSPI getShellForType(EventType eventType) {
if (eventType instanceof BeanEventType) {
return new BeanEventBean(null, eventType);
}
if (eventType instanceof ObjectArrayEventType) {
return new ObjectArrayEventBean(null, eventType);
}
if (eventType instanceof MapEventType) {
return new MapEventBean(null, eventType);
}
if (eventType instanceof BaseXMLEventType) {
return new XMLEventBean(null, eventType);
}
throw new EventAdapterException("Event type '" + eventType.getName() + "' is not an engine-native event type");
}
示例4: getAdapterFactoryForType
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public static EventBeanAdapterFactory getAdapterFactoryForType(EventType eventType) {
if (eventType instanceof BeanEventType) {
return new EventBeanAdapterFactoryBean(eventType);
}
if (eventType instanceof ObjectArrayEventType) {
return new EventBeanAdapterFactoryObjectArray(eventType);
}
if (eventType instanceof MapEventType) {
return new EventBeanAdapterFactoryMap(eventType);
}
if (eventType instanceof BaseXMLEventType) {
return new EventBeanAdapterFactoryXml(eventType);
}
throw new EventAdapterException("Event type '" + eventType.getName() + "' is not an engine-native event type");
}
示例5: EventSenderXMLDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
/**
* Ctor.
* @param runtimeEventSender for processing events
* @param baseXMLEventType the event type
* @param threadingService for inbound threading
* @param eventAdapterService for event bean creation
*/
public EventSenderXMLDOM(EPRuntimeEventSender runtimeEventSender, BaseXMLEventType baseXMLEventType, EventAdapterService eventAdapterService, ThreadingService threadingService)
{
this.runtimeEventSender = runtimeEventSender;
this.baseXMLEventType = baseXMLEventType;
this.validateRootElement = baseXMLEventType.getConfigurationEventTypeXMLDOM().isEventSenderValidatesRoot();
this.eventAdapterService = eventAdapterService;
this.threadingService = threadingService;
}
示例6: getGetterDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public EventPropertyGetterSPI getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, String propertyExpression) {
return new DOMMapGetter(propertyNameAtomic, key, null);
}
示例7: getGetterDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public EventPropertyGetterSPI getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, String propertyExpression) {
return new DOMIndexedGetter(propertyNameAtomic, index, null);
}
示例8: getGetterDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public EventPropertyGetterSPI getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, String propertyExpression) {
return new DOMAttributeAndElementGetter(propertyNameAtomic);
}
示例9: getGetterDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public EventPropertyGetter getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, String propertyExpression)
{
return new DOMMapGetter(propertyNameAtomic, key, null);
}
示例10: getGetterDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public EventPropertyGetter getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, String propertyExpression)
{
return new DOMIndexedGetter(propertyNameAtomic, index, null);
}
示例11: getGetterDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
public EventPropertyGetter getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, String propertyExpression)
{
return new DOMAttributeAndElementGetter(propertyNameAtomic);
}
示例12: EventSenderXMLDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
/**
* Ctor.
*
* @param runtimeEventSender for processing events
* @param baseXMLEventType the event type
* @param threadingService for inbound threading
* @param eventAdapterService for event bean creation
*/
public EventSenderXMLDOM(EPRuntimeEventSender runtimeEventSender, BaseXMLEventType baseXMLEventType, EventAdapterService eventAdapterService, ThreadingService threadingService) {
this.runtimeEventSender = runtimeEventSender;
this.baseXMLEventType = baseXMLEventType;
this.validateRootElement = baseXMLEventType.getConfigurationEventTypeXMLDOM().isEventSenderValidatesRoot();
this.eventAdapterService = eventAdapterService;
this.threadingService = threadingService;
}
示例13: getGetterDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
/**
* Returns the getter-method for use with XML DOM event representations.
*
* @param complexProperty a element-within-element type definition
* @param eventAdapterService for resolving or creating further event types that are property types
* @param xmlEventType the event type
* @param propertyExpression the full property expression
* @return getter
*/
public EventPropertyGetterSPI getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType xmlEventType, String propertyExpression);
示例14: getGetterDOM
import com.espertech.esper.event.xml.BaseXMLEventType; //导入依赖的package包/类
/**
* Returns the getter-method for use with XML DOM event representations.
* @param complexProperty a element-within-element type definition
* @param eventAdapterService for resolving or creating further event types that are property types
* @param xmlEventType the event type
* @param propertyExpression the full property expression
* @return getter
*/
public EventPropertyGetter getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType xmlEventType, String propertyExpression);