|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.bean.BeanEventAdapter
public class BeanEventAdapter
A fcatory for BeanEventType
instances based on Java class information and using configured
settings for
Constructor Summary | |
---|---|
BeanEventAdapter(java.util.concurrent.ConcurrentHashMap<java.lang.Class,BeanEventType> typesPerJavaBean,
EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator)
Ctor. |
Method Summary | |
---|---|
BeanEventType |
createBeanType(java.lang.String name,
java.lang.Class clazz,
boolean isPreconfiguredStatic,
boolean isPreconfigured,
boolean isConfigured)
Creates a new EventType object for a java bean of the specified class if this is the first time the class has been seen. |
BeanEventType |
createBeanTypeDefaultName(java.lang.Class clazz)
Creates a new EventType object for a java bean of the specified class if this is the first time the class has been seen. |
BeanEventType[] |
getCachedTypes()
|
ConfigurationEventTypeLegacy |
getClassToLegacyConfigs(java.lang.String className)
|
Configuration.PropertyResolutionStyle |
getDefaultPropertyResolutionStyle()
Gets the default property resolution style for Java class properties. |
void |
setClassToLegacyConfigs(java.util.Map<java.lang.String,ConfigurationEventTypeLegacy> classToLegacyConfigs)
Set the additional mappings for legacy classes. |
void |
setDefaultAccessorStyle(ConfigurationEventTypeLegacy.AccessorStyle defaultAccessorStyle)
Sets the default accessor style. |
void |
setDefaultPropertyResolutionStyle(Configuration.PropertyResolutionStyle defaultPropertyResolutionStyle)
Sets the default property resolution style for Java class properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanEventAdapter(java.util.concurrent.ConcurrentHashMap<java.lang.Class,BeanEventType> typesPerJavaBean, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator)
typesPerJavaBean
- shareable collection that this adapter writes to
for caching bean types per classeventAdapterService
- factory for event beans and event typesMethod Detail |
---|
public BeanEventType[] getCachedTypes()
getCachedTypes
in interface BeanEventTypeFactory
public void setDefaultAccessorStyle(ConfigurationEventTypeLegacy.AccessorStyle defaultAccessorStyle)
defaultAccessorStyle
- style to setpublic void setClassToLegacyConfigs(java.util.Map<java.lang.String,ConfigurationEventTypeLegacy> classToLegacyConfigs)
classToLegacyConfigs
- legacy class informationpublic void setDefaultPropertyResolutionStyle(Configuration.PropertyResolutionStyle defaultPropertyResolutionStyle)
defaultPropertyResolutionStyle
- resolution stylepublic Configuration.PropertyResolutionStyle getDefaultPropertyResolutionStyle()
getDefaultPropertyResolutionStyle
in interface BeanEventTypeFactory
public final BeanEventType createBeanTypeDefaultName(java.lang.Class clazz)
createBeanTypeDefaultName
in interface BeanEventTypeFactory
clazz
- is the class of the Java bean.
public final BeanEventType createBeanType(java.lang.String name, java.lang.Class clazz, boolean isPreconfiguredStatic, boolean isPreconfigured, boolean isConfigured)
createBeanType
in interface BeanEventTypeFactory
clazz
- is the class of the Java bean.name
- is the nameisPreconfiguredStatic
- if from static engine configisPreconfigured
- if configured before useisConfigured
- if the class is a configuration value, false if discovered
public ConfigurationEventTypeLegacy getClassToLegacyConfigs(java.lang.String className)
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |