Examples of create()


Examples of org.glassfish.api.deployment.archive.WritableArchive.create()

            if (archive==null) {
                logger.log(Level.SEVERE, "Cannot find an archive implementation for " + protocol);
                throw new MalformedURLException("Protocol not supported : " + protocol);
            }

            archive.create(path);
            return archive;
        } catch (ComponentException e) {
            logger.log(Level.SEVERE, "Cannot find an archive implementation for " + protocol, e);
            throw new MalformedURLException("Protocol not supported : " + protocol);
        }

Examples of org.glassfish.api.naming.NamingObjectProxy.create()

        Object managedBean = null;

        if( proxy != null ) {

            managedBean = proxy.create(new InitialContext());

        }

        return managedBean;     
    }

Examples of org.glassfish.hk2.api.ServiceLocatorFactory.create()

            }
        }

        // Each verticle factory will have it's own service locator instance
        ServiceLocatorFactory factory = ServiceLocatorFactory.getInstance();
        locator = factory.create(null);

        bind(locator, new VertxBinder(vertx, container));
        for (Binder bootstrap : bootstraps) {
            bind(locator, bootstrap);
        }

Examples of org.gradle.api.artifacts.ConfigurationContainer.create()

    }

    private void configureConfigurations(final Project project) {

        ConfigurationContainer configurations = project.getConfigurations();
        Configuration moduleConfiguration = configurations.create(DEPLOY_CONFIGURATION_NAME).setVisible(false)
                .setTransitive(false).setDescription("Classpath for deployable modules, not transitive.");
        Configuration earlibConfiguration = configurations.create(EARLIB_CONFIGURATION_NAME).setVisible(false)
                .setDescription("Classpath for module dependencies.");

        configurations.getByName(Dependency.DEFAULT_CONFIGURATION)

Examples of org.gradle.api.artifacts.dsl.DependencyHandler.create()

                    public void execute(ResolvableDependencies resolvableDependencies) {
                        DependencySet dependencies = resolvableDependencies.getDependencies();
                        if (dependencies.isEmpty()) {
                            String toolVersion = rootExtension.getToolVersion();
                            DependencyHandler dependencyHandler = project.getDependencies();
                            Dependency dependency = dependencyHandler.create("org.codehaus.sonar.runner:sonar-runner-dist:" + toolVersion);
                            configuration.getDependencies().add(dependency);
                        }
                    }
                });
    }

Examples of org.gradle.api.internal.artifacts.configurations.ConfigurationContainerInternal.create()

        project.getPlugins().apply(JavaPlugin.class);

        // set up a configuration named 'jpsg' for the user to specify the jpsg libs to use in case
        // they want a specific version etc.
        final ConfigurationContainerInternal projectConf = project.getConfigurations();
        Configuration jpsgConfiguration = projectConf.create(JPSG_CONFIGURATION_NAME)
                        .setVisible(false).setTransitive(false)
                        .setDescription("The Jpsg libraries to be used for this project.");
        projectConf.getByName(JavaPlugin.COMPILE_CONFIGURATION_NAME).extendsFrom(jpsgConfiguration);

        project.getConvention().getPlugin(JavaPluginConvention.class).getSourceSets().all(

Examples of org.gradle.api.internal.initialization.DefaultScriptHandlerFactory.create()

        if (project.getParent() != null) {
            parentClassLoader = project.getParent().getBuildscript().getClassLoader();
        } else {
            parentClassLoader = project.getGradle().getScriptClassLoader();
        }
        return factory.create(project.getBuildScriptSource(), parentClassLoader, project);
    }

    protected DependencyMetaDataProvider createDependencyMetaDataProvider() {
        return new DependencyMetaDataProvider() {
            public InternalRepository getInternalRepository() {

Examples of org.gradle.api.internal.initialization.ScriptHandlerFactory.create()

    protected ScriptHandler createScriptHandler() {
        ScriptHandlerFactory factory = new DefaultScriptHandlerFactory(
                get(DependencyManagementServices.class),
                get(FileResolver.class),
                get(DependencyMetaDataProvider.class));
        return factory.create(project.getBuildScriptSource(), project.getClassLoaderScope(), project);
    }

    protected DependencyMetaDataProvider createDependencyMetaDataProvider() {
        return new DependencyMetaDataProvider() {
            public ModuleInternal getModule() {

Examples of org.gradle.api.internal.tasks.TaskContainerInternal.create()

            }
        });

        tasks.addPlaceholderAction(COMPONENTS_TASK, new Runnable() {
            public void run() {
                tasks.create(COMPONENTS_TASK, ComponentReport.class, new Action<ComponentReport>() {
                    public void execute(ComponentReport task) {
                        task.setDescription("Displays the components produced by " + project + ". [incubating]");
                        task.setGroup(HELP_GROUP);
                        task.setImpliesSubProjects(true);
                    }

Examples of org.gradle.api.tasks.TaskContainer.create()

    public void apply(final Project project) {
        project.apply(Collections.singletonMap("plugin", PublishingPlugin.class));

        final TaskContainer tasks = project.getTasks();
        final Task publishLocalLifecycleTask = tasks.create(PUBLISH_LOCAL_LIFECYCLE_TASK_NAME);
        publishLocalLifecycleTask.setDescription("Publishes all Maven publications produced by this project to the local Maven cache.");
        publishLocalLifecycleTask.setGroup(PublishingPlugin.PUBLISH_TASK_GROUP);

        // Can't move this to rules yet, because it has to happen before user deferred configurable actions
        project.getExtensions().configure(PublishingExtension.class, new Action<PublishingExtension>() {
TOP
Copyright © 2018 www.massapi.com. 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.