当前位置: 首页>>代码示例>>Java>>正文


Java BaseXMLEventType类代码示例

本文整理汇总了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");
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:25,代码来源:EventAdapterServiceHelper.java

示例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");
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:22,代码来源:EventAdapterServiceHelper.java

示例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");
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:16,代码来源:EventAdapterServiceHelper.java

示例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");
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:16,代码来源:EventAdapterServiceHelper.java

示例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;        
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:16,代码来源:EventSenderXMLDOM.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:DynamicMappedProperty.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:DynamicIndexedProperty.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:DynamicSimpleProperty.java

示例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);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:5,代码来源:DynamicMappedProperty.java

示例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);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:5,代码来源:DynamicIndexedProperty.java

示例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);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:5,代码来源:DynamicSimpleProperty.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:16,代码来源:EventSenderXMLDOM.java

示例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);
 
开发者ID:espertechinc,项目名称:esper,代码行数:11,代码来源:Property.java

示例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);
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:10,代码来源:Property.java


注:本文中的com.espertech.esper.event.xml.BaseXMLEventType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。