public EventBeanTypedEventFactory getEventBeanTypedEventFactory() { return servicesContext.getEventBeanTypedEventFactory(); }
public EventSender getEventSender(String eventTypeName) throws EventTypeException { EventType eventType = services.getEventTypeRepositoryBus().getTypeByName(eventTypeName); if (eventType == null) { throw new EventTypeException("Event type named '" + eventTypeName + "' could not be found"); } // handle built-in types ThreadingService threadingService = services.getThreadingService(); if (eventType instanceof BeanEventType) { return new EventSenderBean(this, (BeanEventType) eventType, services.getEventBeanTypedEventFactory(), threadingService); } if (eventType instanceof MapEventType) { return new EventSenderMap(this, (MapEventType) eventType, services.getEventBeanTypedEventFactory(), threadingService); } if (eventType instanceof ObjectArrayEventType) { return new EventSenderObjectArray(this, (ObjectArrayEventType) eventType, services.getEventBeanTypedEventFactory(), threadingService); } if (eventType instanceof BaseXMLEventType) { return new EventSenderXMLDOM(this, (BaseXMLEventType) eventType, services.getEventBeanTypedEventFactory(), threadingService); } if (eventType instanceof AvroSchemaEventType) { return new EventSenderAvro(this, eventType, services.getEventBeanTypedEventFactory(), threadingService); } throw new EventTypeException("An event sender for event type named '" + eventTypeName + "' could not be created as the type is not known"); }
return runtime.getServicesContext().getEventBeanTypedEventFactory().adapterForTypedBean(obj, eventType); } else if (message instanceof MapMessage) { Map<String, Object> properties = new HashMap<String, Object>(); return runtime.getServicesContext().getEventBeanTypedEventFactory().adapterForTypedMap(properties, eventType); } else { String error = ".unmarshal Failed to unmarshal message of JMS type: " + message.getJMSType();
eventBeanManufacturer = EventTypeUtility.getManufacturer(eventType, writableProperties, runtime.getServicesContext().getClasspathImportServiceRuntime(), false, runtime.getServicesContext().getEventTypeAvroHandler()).getManufacturer(runtime.getServicesContext().getEventBeanTypedEventFactory()); } catch (EventBeanManufactureException e) { log.info("Unable to create manufacturer for event type: " + e.getMessage(), e);
eventBeanManufacturer = EventTypeUtility.getManufacturer(eventType, writableProperties, runtime.getServicesContext().getClasspathImportServiceRuntime(), false, runtime.getServicesContext().getEventTypeAvroHandler()).getManufacturer(runtime.getServicesContext().getEventBeanTypedEventFactory()); } catch (EventBeanManufactureException e) { log.info("Unable to create manufacturer for event type: " + e.getMessage(), e);
public void activateVariable(String name) { VariableMetaData variable = moduleIncidentals.getVariables().get(name); if (variable == null) { throw new IllegalArgumentException("Failed to find variable information for '" + name + "'"); } String contextDeploymentId = null; if (variable.getOptionalContextName() != null) { contextDeploymentId = ContextDeployTimeResolver.resolveContextDeploymentId(variable.getOptionalContextModule(), variable.getOptionalContextVisibility(), variable.getOptionalContextName(), deploymentId, servicesContext.getContextPathRegistry()); } servicesContext.getVariableManagementService().addVariable(deploymentId, variable, contextDeploymentId); // for non-context variables we allocate the state if (contextDeploymentId == null) { servicesContext.getVariableManagementService().allocateVariableState(deploymentId, name, DEFAULT_AGENT_INSTANCE_ID, recovery, null, servicesContext.getEventBeanTypedEventFactory()); } }
EventTypeCollectorImpl eventTypeCollector = new EventTypeCollectorImpl(moduleEventTypes, beanEventTypeFactory, services.getEventTypeFactory(), services.getBeanEventTypeStemService(), eventTypeResolver, services.getXmlFragmentEventTypeFactory(), services.getEventTypeAvroHandler(), services.getEventBeanTypedEventFactory()); try { provider.getModuleProvider().initializeEventTypes(new EPModuleEventTypeInitServicesImpl(eventTypeCollector, eventTypeResolver));
EventTypeCollectorImpl eventTypeCollector = new EventTypeCollectorImpl(moduleTypes, services.getBeanEventTypeFactoryPrivate(), services.getEventTypeFactory(), services.getBeanEventTypeStemService(), eventTypeResolver, services.getXmlFragmentEventTypeFactory(), services.getEventTypeAvroHandler(), services.getEventBeanTypedEventFactory()); fafProvider.initializeEventTypes(new EPModuleEventTypeInitServicesImpl(eventTypeCollector, eventTypeResolver));