當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。