Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) 2010-2011. Axon Framework
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.axonframework.contextsupport.spring;
The FileSystemEventStoreBeanDefinitionParser is responsible for parsing the eventStore element form the Axon namespace. It creates a org.springframework.beans.factory.config.BeanDefinition based either on a org.axonframework.eventstore.jpa.JpaEventStore or on a org.axonframework.eventstore.fs.FileSystemEventStore, depending on the selected configuration.

Ben Z. Tels
Allard Buijze
The base directory attribute.
    private static final String BASE_DIR_ATTRIBUTE = "base-dir";
the event serializer attribute.
    private static final String EVENT_SERIALIZER_ATTRIBUTE = "event-serializer";

    protected Class<?> getBeanClass(Element element) {
        return FileSystemEventStore.class;

    protected void doParse(Element elementParserContext parserContextBeanDefinitionBuilder builder) {
        if (element.hasAttribute()) {
        String baseDirValue = element.getAttribute();
        if (!baseDirValue.endsWith("/")) {
            baseDirValue = baseDirValue + "/";
New to GrepCode? Check out our FAQ X