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);
eventManufacturer = EventTypeUtility.getManufacturer(eventType, writableProperties, classpathImportService, false, eventTypeAvroHandler); } catch (EventBeanManufactureException e) { throw new ExprValidationException(e.getMessage(), e);
EventBeanManufacturer manufacturer; try { manufacturer = EventTypeUtility.getManufacturer(outputEventType, writables, statementContext.getClasspathImportServiceRuntime(), false, statementContext.getEventTypeAvroHandler()).getManufacturer(statementContext.getEventBeanTypedEventFactory()); } catch (EventBeanManufactureException e) { throw new EPException("Event type '" + outputEventType.getName() + "' cannot be written to: " + e.getMessage(), e);
EventBeanManufacturer manufacturer; try { manufacturer = EventTypeUtility.getManufacturer(outputEventType, writables, statementContext.getClasspathImportServiceRuntime(), false, statementContext.getEventTypeAvroHandler()).getManufacturer(statementContext.getEventBeanTypedEventFactory()); } catch (EventBeanManufactureException e) { throw new EPException("Event type '" + outputEventType.getName() + "' cannot be written to: " + e.getMessage(), e);
private FileBeginEndProcessor getBeginEndProcessor(DataFlowOpInitializeContext context, int outputPort) { EventType portEventType = factory.getOutputPortTypes()[outputPort]; Set<WriteablePropertyDescriptor> writeables = EventTypeUtility.getWriteableProperties(portEventType, false, false); List<WriteablePropertyDescriptor> writeableList = new ArrayList<WriteablePropertyDescriptor>(); EventBeanManufacturer manufacturer; if (propertyNameFile != null) { WriteablePropertyDescriptor writeableFile = EventTypeUtility.findWritable(propertyNameFile, writeables); if (writeableFile == null || writeableFile.getType() != String.class) { throw new EPException("Failed to find writable String-type property '" + propertyNameFile + "', is the property read-only?"); } writeableList.add(writeableFile); } try { manufacturer = EventTypeUtility.getManufacturer(portEventType, writeableList.toArray(new WriteablePropertyDescriptor[writeableList.size()]), context.getAgentInstanceContext().getClasspathImportServiceRuntime(), false, context.getAgentInstanceContext().getEventTypeAvroHandler()).getManufacturer(context.getAgentInstanceContext().getEventBeanTypedEventFactory()); } catch (EventBeanManufactureException e) { throw new EPException("Event type '" + portEventType.getName() + "' cannot be written to: " + e.getMessage(), e); } return new FileBeginEndProcessorGeneralPurpose(manufacturer); }
EventBeanManufacturerForge manufacturer; try { manufacturer = EventTypeUtility.getManufacturer(targetType, writtenArray, args.getClasspathImportService(), false, args.getEventTypeAvroHandler()); } catch (EventBeanManufactureException e) { throw new ExprValidationException("Failed to obtain eventbean factory: " + e.getMessage(), e);
private FileBeginEndProcessor getBeginEndProcessor(DataFlowOpInitializeContext context, int outputPort) { EventType portEventType = factory.getOutputPortTypes()[outputPort]; Set<WriteablePropertyDescriptor> writeables = EventTypeUtility.getWriteableProperties(portEventType, false); List<WriteablePropertyDescriptor> writeableList = new ArrayList<WriteablePropertyDescriptor>(); EventBeanManufacturer manufacturer; if (propertyNameFile != null) { WriteablePropertyDescriptor writeableFile = EventTypeUtility.findWritable(propertyNameFile, writeables); if (writeableFile == null || writeableFile.getType() != String.class) { throw new EPException("Failed to find writable String-type property '" + propertyNameFile + "', is the property read-only?"); } writeableList.add(writeableFile); } try { manufacturer = EventTypeUtility.getManufacturer(portEventType, writeableList.toArray(new WriteablePropertyDescriptor[writeableList.size()]), context.getAgentInstanceContext().getClasspathImportServiceRuntime(), false, context.getAgentInstanceContext().getEventTypeAvroHandler()).getManufacturer(context.getAgentInstanceContext().getEventBeanTypedEventFactory()); } catch (EventBeanManufactureException e) { throw new EPException("Event type '" + portEventType.getName() + "' cannot be written to: " + e.getMessage(), e); } return new FileBeginEndProcessorGeneralPurpose(manufacturer); }
EventBeanManufacturerForge manufacturer; try { manufacturer = EventTypeUtility.getManufacturer(oaResultType, written.toArray(new WriteablePropertyDescriptor[written.size()]), classpathImportService, true, selectExprForgeContext.getEventTypeAvroHandler()); } catch (EventBeanManufactureException e) {
EventBeanManufacturerForge manufacturer; try { manufacturer = EventTypeUtility.getManufacturer(mapResultType, written.toArray(new WriteablePropertyDescriptor[written.size()]), classpathImportService, true, null); } catch (EventBeanManufactureException e) {
eventManufacturer = EventTypeUtility.getManufacturer(eventType, new WriteablePropertyDescriptor[0], classpathImportService, true, eventTypeAvroHandler); } catch (EventBeanManufactureException e) { throw new ExprValidationException(e.getMessage(), e);
if (writables != null && !writables.isEmpty()) { try { EventBeanManufacturerForge manufacturer = EventTypeUtility.getManufacturer(streamEventType, new WriteablePropertyDescriptor[]{writables.iterator().next()}, services.getClasspathImportServiceCompileTime(), false, services.getEventTypeAvroHandler()); containedEventEval = new ContainedEventEvalArrayToEventForge(validatedExprNode.getForge(), manufacturer); } catch (EventBeanManufactureException e) {
eventManufacturer = EventTypeUtility.getManufacturer(eventType, writableProperties, classpathImportService, false, eventTypeAvroHandler); } catch (EventBeanManufactureException e) { throw new ExprValidationException(e.getMessage(), e);
WriteablePropertyDescriptor[] writables = setupProperties(props.toArray(new String[props.size()]), outputEventType); try { eventBeanManufacturer = EventTypeUtility.getManufacturer(outputEventType, writables, context.getServices().getClasspathImportServiceCompileTime(), false, context.getServices().getEventTypeAvroHandler()); } catch (EventBeanManufactureException e) { throw new ExprValidationException("Cannot manufacture event for the provided type '" + outputEventType.getName() + "': " + e.getMessage(), e);
try { WriteablePropertyDescriptor[] writables = writeableList.toArray(new WriteablePropertyDescriptor[writeableList.size()]); manufacturer = EventTypeUtility.getManufacturer(outputEventType, writables, statementContext.getClasspathImportServiceRuntime(), false, statementContext.getEventTypeAvroHandler()).getManufacturer(statementContext.getEventBeanTypedEventFactory()); } catch (EventBeanManufactureException e) { throw new EPException("Event type '" + outputEventType.getName() + "' cannot be written to: " + e.getMessage(), e);
try { WriteablePropertyDescriptor[] writables = writeableList.toArray(new WriteablePropertyDescriptor[writeableList.size()]); manufacturer = EventTypeUtility.getManufacturer(outputEventType, writables, statementContext.getClasspathImportServiceRuntime(), false, statementContext.getEventTypeAvroHandler()).getManufacturer(statementContext.getEventBeanTypedEventFactory()); } catch (EventBeanManufactureException e) { throw new EPException("Event type '" + outputEventType.getName() + "' cannot be written to: " + e.getMessage(), e);