Code example for AbstractBeanDefinition

Methods: setBeanClass

0
	private static final String INPUT_CHANNEL_ATTRIBUTE = "input-channel";
	private static final String OUTPUT_CHANNEL_ATTRIBUTE = "output-channel";
	private static final String ITEM_PROCESSOR_ATTRIBUTE = "item-processor";
	private static final String ITEM_WRITER_ATTRIBUTE = "item-writer";
	private static final String ITEM_PROCESSOR_PROPERTY_NAME = "itemProcessor";
	private static final String ITEM_WRITER_PROPERTY_NAME = "itemWriter";
	private static final String CHUNK_PROCESSOR_PROPERTY_NAME = "chunkProcessor";
	private static final String CHUNK_PROCESSOR_CHUNK_HANDLER_BEAN_NAME_PREFIX = "chunkProcessorChunkHandler_";
 
	@Override 
	protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {
		String id = element.getAttribute(ID_ATTRIBUTE);
		Assert.hasText(id, "The id attribute must be specified");
 
		String inputChannel = element.getAttribute(INPUT_CHANNEL_ATTRIBUTE);
		Assert.hasText(inputChannel, "The input-channel attribute must be specified");
 
		String outputChannel = element.getAttribute(OUTPUT_CHANNEL_ATTRIBUTE);
		Assert.hasText(outputChannel, "The output-channel attribute must be specified");