Package org.gradle.model.internal.core.rule.describe

Examples of org.gradle.model.internal.core.rule.describe.NestedModelRuleDescriptor


        doCreate(name, ModelType.of(type), configAction, new CustomTypeFactory<S>(name, type));
    }

    private <S extends T> void doCreate(final String name, ModelType<S> type, Action<? super S> configAction, Factory<? extends S> factory) {
        ModelReference<S> modelReference = ModelReference.of(collectionPath.child(name), type);
        ModelRuleDescriptor descriptor = new NestedModelRuleDescriptor(sourceDescriptor, ActionModelRuleDescriptor.from(new ErroringAction<Appendable>() {
            @Override
            protected void doExecute(Appendable thing) throws Exception {
                thing.append("create(").append(name).append(")");
            }
        }));
View Full Code Here

TOP

Related Classes of org.gradle.model.internal.core.rule.describe.NestedModelRuleDescriptor

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.