Ejemplo n.º 1
0
        public void SetUp()
        {
            _eventService = SupportEventAdapterService.Service;
            EventType underlyingEventTypeSimple   = _eventService.AddBeanType("UnderlyingSimpleBean", typeof(SupportBeanSimple), true, true, true);
            EventType underlyingEventTypeCombined = _eventService.AddBeanType("UnderlyingCombinedBean", typeof(SupportBeanCombinedProps), true, true, true);

            IDictionary <String, Object> typeMap = new Dictionary <String, Object>();

            typeMap["string"] = typeof(string);
            typeMap["int"]    = typeof(int);

            EventTypeMetadata meta = EventTypeMetadata.CreateWrapper("test", true, false, false);

            _eventTypeSimple      = new WrapperEventType(meta, "mytype", 1, underlyingEventTypeSimple, typeMap, _eventService);
            _eventTypeCombined    = new WrapperEventType(meta, "mytype", 1, underlyingEventTypeCombined, typeMap, _eventService);
            _properties           = new Dictionary <String, Object>();
            _properties["string"] = "xx";
            _properties["int"]    = 11;

            EventBean wrappedSimple = _eventService.AdapterForObject(new SupportBeanSimple("EventString", 0));

            _eventBeanSimple = _eventService.AdapterForTypedWrapper(wrappedSimple, _properties, _eventTypeSimple);

            EventBean wrappedCombined = _eventService.AdapterForObject(SupportBeanCombinedProps.MakeDefaultBean());

            _eventBeanCombined = _eventService.AdapterForTypedWrapper(wrappedCombined, _properties, _eventTypeCombined);
        }
        public override EventBean ProcessFirstCol(Object result)
        {
            EventBean wrappedEvent = EventAdapterService.AdapterForObject(result);

            return(_vaeProcessor.GetValueAddEventBean(
                       EventAdapterService.AdapterForTypedWrapper(wrappedEvent, new Dictionary <string, object>(), _vaeInnerEventType)));
        }
        public override EventBean ProcessFirstCol(Object result)
        {
            EventBean wrappedEvent = EventAdapterService.AdapterForObject(result);
            EventBean variant      = _vaeProcessor.GetValueAddEventBean(wrappedEvent);

            return(EventAdapterService.AdapterForTypedWrapper(variant, Collections.EmptyDataMap, ResultEventType));
        }
        public object Get(EventBean obj)
        {
            var result = _revisionGetter.Get(obj);
            if (result == null) return result;

            // Object within the map
            var theEvent = _eventAdapterService.AdapterForObject(result);
            return _nestedGetter.Get(theEvent);
        }
Ejemplo n.º 5
0
        public Object Get(EventBean eventBean)
        {
            Object result = revisionGetter.Get(eventBean);

            if (result == null)
            {
                return(result);
            }

            // Object within the map
            return(nestedGetter.Get(eventAdapterService.AdapterForObject(result)));
        }
Ejemplo n.º 6
0
 protected override IList <EventBean> HandleResult(Object invocationResult)
 {
     return(Collections.SingletonList(EventAdapterService.AdapterForObject(invocationResult)));
 }
Ejemplo n.º 7
0
 protected override EventBean GetEventBean(Object value)
 {
     return(EventAdapterService.AdapterForObject(value));
 }
Ejemplo n.º 8
0
            public void SendEvent(Object @object)
            {
                EventBean theEvent = _eventAdapterService.AdapterForObject(@object);

                _runtimeEventSender.ProcessWrappedEvent(theEvent);
            }