コード例 #1
0
ファイル: BeanEventType.cs プロジェクト: valmac/nesper
 public EventPropertyGetterMapped GetGetterMapped(string mappedPropertyName)
 {
     EventPropertyDescriptor desc = _propertyDescriptorMap.Get(mappedPropertyName);
     if (desc == null || !desc.IsMapped)
     {
         return null;
     }
     var mappedProperty = new MappedProperty(mappedPropertyName);
     return (EventPropertyGetterMapped) mappedProperty.GetGetter(this, _eventAdapterService);
 }
コード例 #2
0
        public EventPropertyGetterMappedSPI GetGetterMappedSPI(string propertyName)
        {
            var desc = Stem.PropertyDescriptorMap.Get(propertyName);
            if (desc == null || !desc.IsMapped) {
                return null;
            }

            var mappedProperty = new MappedProperty(propertyName);
            return (EventPropertyGetterMappedSPI) mappedProperty.GetGetter(
                this,
                _beanEventTypeFactory.EventBeanTypedEventFactory,
                _beanEventTypeFactory);
        }