本文整理匯總了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);