Esempio n. 1
0
        public PlugInEventTypeHandler GetTypeHandler(PlugInEventTypeHandlerContext eventTypeContext)
        {
            String typeProperyies = (String)eventTypeContext.TypeInitializer;

            String[] propertyList = (typeProperyies != null) ? typeProperyies.Split(',') : new String[0];

            // the set of properties know are the set of this name as well as the set for the base
            ICollection <String> typeProps = new HashSet <String>(propertyList);

            typeProps.AddAll(baseProps);

            IDictionary <String, EventPropertyDescriptor> metadata = new LinkedHashMap <String, EventPropertyDescriptor>();

            foreach (String prop in typeProps)
            {
                metadata.Put(prop, new EventPropertyDescriptor(prop, typeof(string), null, false, false, false, false, false));
            }

            // save type for testing dynamic event object reflection
            MyPlugInPropertiesEventType eventType = new MyPlugInPropertiesEventType(null, eventTypeContext.EventTypeId, typeProps, metadata);

            types.Add(eventType);

            return(new MyPlugInPropertiesEventTypeHandler(eventType));
        }
 public MyPlugInPropertiesEventTypeHandler(MyPlugInPropertiesEventType eventType)
 {
     _eventType = eventType;
 }
 public MyPlugInPropertiesEventSender(MyPlugInPropertiesEventType type, EPRuntimeEventSender runtimeSender)
 {
     _type          = type;
     _runtimeSender = runtimeSender;
 }
Esempio n. 4
0
 public MyPlugInPropertiesEventBean(MyPlugInPropertiesEventType eventType, Properties properties)
 {
     this.eventType  = eventType;
     this.properties = properties;
 }