Package org.lilyproject.repository.spi

Examples of org.lilyproject.repository.spi.RepositoryDecoratorFactory


        Repository nextInChain = repository;
        chain.addEntryAtStart(RepositoryDecoratorChain.UNDECORATED_REPOSITORY_KEY, nextInChain);

        for (int i = configuredDecorators.size() - 1; i >=0; i--) {
            String decoratorName = configuredDecorators.get(i);
            RepositoryDecoratorFactory factory = decorators.get(decoratorName);
            if (factory == null) {
                throw new RuntimeException("No repository decorator registered with the name '" + decoratorName + "'");
            }
            nextInChain = factory.createInstance(nextInChain);
            chain.addEntryAtStart(decoratorName, nextInChain);
        }

        return chain;
    }
View Full Code Here

TOP

Related Classes of org.lilyproject.repository.spi.RepositoryDecoratorFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.