Package org.apache.commons.chain

Examples of org.apache.commons.chain.CatalogFactory


    /**
     * @return <code>Catalog</code> for the <code>catalogName</code>
     */
    private Catalog getCatalog() {
        CatalogFactory catalogFactory = CatalogFactory.getInstance();
        return catalogFactory.getCatalog(getCatalogName());
    }
View Full Code Here


     *
     * @param context The Context we are processing
     * @return The Command to process for this Context
     */
    protected Command getCommand(Context context) {
        CatalogFactory catalogFactory = CatalogFactory.getInstance();
        String catalogName = getCatalogName();
        Catalog catalog;

        if (catalogName == null) {
            catalog = catalogFactory.getCatalog();
            catalogName = "{default}"; // for debugging purposes
        } else {
            catalog = catalogFactory.getCatalog(catalogName);
        }

        if (catalog == null) {
            throw new IllegalArgumentException("Cannot find catalog '"
                + catalogName + "'");
View Full Code Here

TOP

Related Classes of org.apache.commons.chain.CatalogFactory

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.