Tabnine Logo
com.atlassian.plugin.util
Code IndexAdd Tabnine to your IDE (free)

How to use com.atlassian.plugin.util

Best Java code snippets using com.atlassian.plugin.util (Showing top 20 results out of 315)

origin: com.atlassian.plugins/atlassian-plugins-core

@Override
public Enumeration<URL> getResources(String name) throws IOException {
  return new ResourcesEnumeration(getAlternativeResourceName(name), classLoaders);
}
origin: com.atlassian.plugins/atlassian-plugins-core

/**
 * Obtain a regular expression which matches any of the provided parts.
 */
public String buildRegularExpression(final Collection<String> parts) {
  return RegularExpressions.anyOf(parts);
}
origin: com.atlassian.plugins/atlassian-plugins-core

@Override
public boolean satisfiesMinJavaVersion() {
  if (minJavaVersion != null) {
    return JavaVersionUtils.satisfiesMinVersion(minJavaVersion);
  }
  return true;
}
origin: com.atlassian.plugins/atlassian-plugins-core

/**
 * @throws IllegalArgumentException if the moduleClass is <code>null</code>
 */
public ModuleOfClassPredicate(final Class<T> moduleClass) {
  this.moduleClass = notNull("moduleClass", moduleClass);
}
origin: com.atlassian.plugins/atlassian-plugins-core

/**
 * Invokes the wait condition, trying every second for 10 seconds
 *
 * @param waitCondition The condition that determines when to stop waiting
 * @return True if the condition returned true
 */
public static boolean invoke(final WaitCondition waitCondition) {
  return invoke(waitCondition, STARTUP_WAIT);
}
origin: com.atlassian.plugins/atlassian-plugins-core

  private static Comparator<String> newVersionComparator() {
    return new VersionStringComparator();
  }
}
origin: com.atlassian.plugins/atlassian-plugins-core

private VersionRange newRange(String version, boolean rightIncluded) {
  if (leftVersion != null) {
    return newActualRange(version, rightIncluded);
  } else {
    return newLeftUnboundedRange(version, rightIncluded);
  }
}
origin: com.atlassian.plugins/atlassian-plugins-core

public <M> Class<M> loadClass(final String clazz, final Class<?> callingClass) throws ClassNotFoundException {
  return ClassLoaderUtils.loadClass(clazz, callingClass);
}
origin: com.atlassian.plugins/atlassian-plugins-core

@Override
boolean isInRange(String v) {
  return or1.isInRange(v) || or2.isInRange(v);
}
origin: com.atlassian.plugins/atlassian-plugins-core

public VersionRange include(String version) {
  return newRange(version, true);
}
origin: com.atlassian.plugins/atlassian-plugins-core

ModuleRestrict(String application, InstallationMode mode) {
  this(application, mode, VersionRange.all());
}
origin: com.atlassian.plugins/atlassian-plugins-core

private LeftUnboundedVersionRange newLeftUnboundedRange(String version, boolean rightIncluded) {
  return new LeftUnboundedVersionRange(rightIncluded, version);
}
origin: com.atlassian.plugins/atlassian-plugins-core

/**
 * Delegate all event publication to the supplied {@code EventPublisher}.
 */
public DefaultPluginEventManager(final EventPublisher eventPublisher) {
  this.eventPublisher = notNull("eventPublisher", eventPublisher);
}
origin: com.atlassian.plugins/atlassian-plugins-core

/**
 * Invokes the wait condition, trying every second for the configured
 * seconds
 *
 * @param waitCondition The condition that determines when to stop waiting
 * @param tries         The number of tries to attempt
 * @return True if the condition returned true
 */
public static boolean invoke(final WaitCondition waitCondition, final int tries) {
  final int secondMillis = 1000;
  return invoke(waitCondition, tries * secondMillis, TimeUnit.MILLISECONDS, secondMillis);
}
origin: com.atlassian.plugins/atlassian-plugins-core

/**
 * Obtain a regular expression which matches any of the provided parts.
 */
public String buildRegularExpression(final Collection<String> parts) {
  return RegularExpressions.anyOf(parts);
}
origin: com.atlassian.plugins/atlassian-plugins-main

/**
 * 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;
}
origin: com.atlassian.plugins/atlassian-plugins-webresource

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);
}
origin: com.atlassian.plugins/atlassian-plugins-core

public SinglePluginLoader(final URL url) {
  this.url = notNull("url", url);
  resource = null;
}
origin: com.atlassian.plugins/atlassian-plugins-main

/**
 * 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;
}
origin: com.atlassian.plugins/atlassian-plugins-core

public SinglePluginLoader(final String resource) {
  this.resource = notNull("resource", resource);
  url = null;
}
com.atlassian.plugin.util

Most used classes

  • Assertions
  • ValidationPattern$RuleTest
    A test within a rule
  • ValidationPattern
    Validates a pattern of rules against a dom4j node, patterned off ofSchematron [http://www.schematron
  • ClassLoaderUtils
    This class is extremely useful for loading resources and classes in a fault tolerant manner that wor
  • PluginUtils
    General plugin utility methods
  • ContextClassLoaderSwitchingUtil,
  • WaitUntil,
  • AlternativeDirectoryResourceLoader,
  • AlternativeResourceLoader,
  • ClassLoaderStack,
  • ClassUtils,
  • FileUtils,
  • PluginFrameworkUtils,
  • VersionStringComparator,
  • NoOpAlternativeResourceLoader,
  • ValidationException,
  • ChainingClassLoader$ResourcesEnumeration,
  • ContextClassLoaderSettingInvocationHandler,
  • EnumUtils
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now