Package org.gradle.api.internal.plugins

Examples of org.gradle.api.internal.plugins.DefaultObjectConfigurationAction


    public Module getModule() {
        return getServices().get(DependencyMetaDataProvider.class).getModule();
    }

    public void apply(Closure closure) {
        DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction(fileResolver, services.get(
                ScriptPluginFactory.class), this);
        configure(action, closure);
        action.execute();
    }
View Full Code Here


        configure(action, closure);
        action.execute();
    }

    public void apply(Map<String, ?> options) {
        DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction(fileResolver, services.get(
                ScriptPluginFactory.class), this);
        ConfigureUtil.configureByMap(options, action);
        action.execute();
    }
View Full Code Here

        throw new UnsupportedOperationException();
    }

    @Override
    protected DefaultObjectConfigurationAction createObjectConfigurationAction() {
        return new DefaultObjectConfigurationAction(getFileResolver(), getScriptPluginFactory(), getScriptHandlerFactory(), getBaseClassLoaderScope(), this);
    }
View Full Code Here

    public void apply(Closure closure) {
        apply(ClosureBackedAction.of(closure));
    }

    public void apply(Action<? super ObjectConfigurationAction> action) {
        DefaultObjectConfigurationAction configAction = createObjectConfigurationAction();
        action.execute(configAction);
        configAction.execute();
    }
View Full Code Here

                getPluginManager().apply((Class<?>) pluginValue);
            } else {
                throw new IllegalArgumentException("'plugin' value must be either a String or Class");
            }
        } else {
            DefaultObjectConfigurationAction action = createObjectConfigurationAction();
            ConfigureUtil.configureByMap(options, action);
            action.execute();
        }
    }
View Full Code Here

        return fileOperations.getFileResolver();
    }

    private DefaultObjectConfigurationAction createObjectConfigurationAction() {
        ClassLoaderScope classLoaderScope = __scriptServices.get(ClassLoaderScope.class);
        return new DefaultObjectConfigurationAction(
                getFileResolver(),
                __scriptServices.get(ScriptPluginFactory.class),
                __scriptServices.get(ScriptHandlerFactory.class),
                classLoaderScope,
                getScriptTarget()
View Full Code Here

                getScriptTarget()
        );
    }

    public void apply(Closure closure) {
        DefaultObjectConfigurationAction action = createObjectConfigurationAction();
        ConfigureUtil.configure(closure, action);
        action.execute();
    }
View Full Code Here

        ConfigureUtil.configure(closure, action);
        action.execute();
    }

    public void apply(Map options) {
        DefaultObjectConfigurationAction action = createObjectConfigurationAction();
        ConfigureUtil.configureByMap(options, action);
        action.execute();
    }
View Full Code Here

        return projectDescriptorRegistry;
    }

    @Override
    protected DefaultObjectConfigurationAction createObjectConfigurationAction() {
        return new DefaultObjectConfigurationAction(fileResolver, scriptPluginFactory, scriptHandlerFactory, getRootClassLoaderScope(), this);
    }
View Full Code Here

        return services.get(ServiceRegistryFactory.class);
    }

    @Override
    protected DefaultObjectConfigurationAction createObjectConfigurationAction() {
        return new DefaultObjectConfigurationAction(fileResolver, scriptPluginFactory, scriptHandlerFactory, getClassLoaderScope(), this);
    }
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.plugins.DefaultObjectConfigurationAction

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.