All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feilong.lib.digester3.binder.ByRuleProviderBuilder Maven / Gradle / Ivy

Go to download

feilong is a suite of core and expanded libraries that include utility classes, http, excel,cvs, io classes, and much much more.

There is a newer version: 4.3.0
Show newest version
package com.feilong.lib.digester3.binder;

import com.feilong.lib.digester3.Rule;

/**
 * Builder chained when invoking
 * {@link LinkedRuleBuilder#addRuleCreatedBy(org.apache.commons.digester3.binder.RuleProvider)}.
 *
 * @param 
 *            The rule type will be returned by this builder
 * @since 3.0
 */
public final class ByRuleProviderBuilder extends AbstractBackToLinkedRuleBuilder{

    private final RuleProvider provider;

    ByRuleProviderBuilder(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder,
                    RuleProvider provider){
        super(keyPattern, namespaceURI, mainBinder, mainBuilder);
        this.provider = provider;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected R createRule(){
        return provider.get();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy