/** * @throws IllegalArgumentException if the moduleClass is <code>null</code> */ public ModuleOfClassPredicate(final Class<T> moduleClass) { this.moduleClass = notNull("moduleClass", moduleClass); }
public URI getDisplayUrl(final ApplicationLink link, final String entity) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof GenericApplicationTypeImpl); // we don't know what kind of app the peer is, so we can't point to anything return null; } }
public URI getDisplayUrl(final ApplicationLink link, final String entity) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof GenericApplicationTypeImpl); // we don't know what kind of app the peer is, so we can't point to anything return null; } }
/** * Delegate all event publication to the supplied {@code EventPublisher}. */ public DefaultPluginEventManager(final EventPublisher eventPublisher) { this.eventPublisher = notNull("eventPublisher", eventPublisher); }
public URI getDisplayUrl(final ApplicationLink link, final String entityKey) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof BambooApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "browse", entityKey); } }
public SinglePluginLoader(final String resource) { this.resource = notNull("resource", resource); url = null; }
/** * @since 3.1 */ public URI getDisplayUrl(final ApplicationLink link, final String path) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof SubversionPathEntityType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), path); } }
public WebResourceManagerImpl(final WebResourceAssemblerFactory webResourceAssemblerFactory, final LegacyPageBuilderService pageBuilderService, final PluginResourceLocator pluginResourceLocator, final WebResourceIntegration webResourceIntegration, final WebResourceUrlProvider webResourceUrlProvider, final ResourceBatchingConfiguration batchingConfiguration, final ResourceDependencyResolver resourceDependencyResolver) { this.webResourceAssemblerFactory = notNull("webResourceAssemblerFactory", webResourceAssemblerFactory); this.pageBuilderService = notNull("pageBuilderService", pageBuilderService); this.webResourceIntegration = notNull("webResourceIntegration", webResourceIntegration); this.webResourceUrlProvider = notNull("webResourceUrlProvider", webResourceUrlProvider); }
/** * @since 3.1 */ public URI getDisplayUrl(final ApplicationLink link, final String project) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof FishEyeCrucibleApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "cru", project); } }
/** * Sets the host component provider instance, used for registering application services as OSGi services so that * they can be automatically available to plugins * * @param hostComponentProvider The host component provider implementation * @return this */ public PluginsConfigurationBuilder hostComponentProvider(final HostComponentProvider hostComponentProvider) { this.hostComponentProvider = notNull("hostComponentProvider", hostComponentProvider); return this; }
/** * @since 3.1 */ public URI getDisplayUrl(final ApplicationLink link, final String project) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof FishEyeCrucibleApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "cru", project); } }
public SinglePluginLoader(final URL url) { this.url = notNull("url", url); resource = null; }
public URI getDisplayUrl(final ApplicationLink link, final String space) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof ConfluenceApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "display", space); } }
/** * Sets the package scanner configuration instance that contains information about what packages to expose to plugins. * * @param packageScannerConfiguration The configuration instance * @return this */ public PluginsConfigurationBuilder packageScannerConfiguration(final PackageScannerConfiguration packageScannerConfiguration) { this.packageScannerConfiguration = notNull("packageScannerConfiguration", packageScannerConfiguration); return this; }
public URI getDisplayUrl(final ApplicationLink link, final String project) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof JiraApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "browse", project); } }
public PluginBeanDefinitionRegistry(BeanDefinitionRegistry registry) { this.registry = notNull("registry", registry); }
@Override public URI getDisplayUrl(ApplicationLink applicationLink, String job) { Assertions.isTrue(String.format("Application link %s is not of type %s", applicationLink.getId(), getApplicationType().getName()), (applicationLink.getType() instanceof HudsonApplicationType)); return URIUtils.appendPathsToURI(applicationLink.getDisplayUrl(), "job", job); }
/** * @throws IllegalArgumentException if the moduleDescriptorClasses is <code>null</code> */ public ModuleDescriptorOfClassPredicate(final Class<? extends ModuleDescriptor<? extends T>>[] moduleDescriptorClasses) { notNull("moduleDescriptorClasses", moduleDescriptorClasses); this.moduleDescriptorClasses = Arrays.asList(moduleDescriptorClasses); }
public URI getDisplayUrl(final ApplicationLink link, final String project) { Assertions.isTrue(String.format("Application link %s is not of type %s", link.getId(), getApplicationType().getName()), link.getType() instanceof JiraApplicationType); return URIUtil.uncheckedConcatenate(link.getDisplayUrl(), "browse", project); } }