Skip to main content
Skip table of contents

Admin UI - Installed Plugins

The Manage Plugins section of the AdminUI is where you can view information about the plugins you currently have installed in your XNAT. This section does not yet have the functionality to let you turn on and off plugins.

While XNAT does not require plugins to contain any particular files (a plugin could contain only a single properties file), only plugins containing a java class with the @XnatPlugin annotation will show up in this list.

List of Installed Plugins

This list shows some basic information about your currently installed XNAT plugins.

Plugin Information Modal

For more information about the plugins, you can click the 'View Plugin Info links in the above plugins table. This opens a modal that will look something like this:

These plugin properties come from the @XnatPlugin annotated class, which in this case is ContainersConfig.java:

ContainersConfig.java
JAVA
package org.nrg.containers.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.nrg.containers.events.DockerEventPuller;
import org.nrg.framework.annotations.XnatPlugin;
import org.nrg.transporter.config.TransporterConfig;
import org.nrg.xdat.security.PermissionsServiceImpl;
import org.nrg.xdat.security.services.PermissionsServiceI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.config.TriggerTask;
import org.springframework.scheduling.support.PeriodicTrigger;
import java.util.concurrent.TimeUnit;
@Configuration
@XnatPlugin(value = "containers", name = "containers", description = "Container Service", entityPackages = "org.nrg.containers")
@ComponentScan(value = "org.nrg.containers",
        excludeFilters = @Filter(type = FilterType.REGEX, pattern = ".*TestConfig.*", value = {}))
@Import(TransporterConfig.class)
public class ContainersConfig {
    @Bean
    public ObjectMapper objectMapper() {
        return new ObjectMapper();
    }
    // This should not be here, this bean should live somewhere else.
    // But the Permissions class does some goofy half-context-half-reflection thing,
    // with the implementation class stored as a preference for some reason.
    // So it is what it is. I'll remove it later when that is updated.
    @Bean
    public PermissionsServiceI permissionsService() {
        return new PermissionsServiceImpl();
    }
    @Bean
    public TriggerTask dockerEventPullerTask(final DockerEventPuller dockerEventPuller) {
        return new TriggerTask(
                dockerEventPuller,
                new PeriodicTrigger(10L, TimeUnit.SECONDS)
        );
    }
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.