Tabnine Logo
RegistryElementDescriptor.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
javax.media.jai.RegistryElementDescriptor

Best Java code snippets using javax.media.jai.RegistryElementDescriptor.getName (Showing top 11 results out of 315)

origin: geoserver/geoserver

int unregisteredCount = 0;
for (Iterator factories = opRegistry.getFactoryIterator(mode, red.getName());
    factories != null && factories.hasNext(); ) {
  Object factory = factories.next();
        opRegistry.getOrderedProductList(mode, red.getName());
    if (orderedProductList != null) {
      for (Iterator products = orderedProductList.iterator();
        try {
          opRegistry.unregisterFactory(
              mode, red.getName(), product, factory);
          LOGGER.info(
              "Unregistering JAI factory " + factory.getClass());
origin: geotools/geotools

String name = operation.getName();
final Map<String, Object> properties = new HashMap<String, Object>();
if (operation instanceof OperationDescriptor) {
origin: org.geotools/gt2-widgets-swing

  public int compare(final Object obj1, final Object obj2) {
    final RegistryElementDescriptor desc1 = (RegistryElementDescriptor) obj1;
    final RegistryElementDescriptor desc2 = (RegistryElementDescriptor) obj2;
    return desc1.getName().compareTo(desc2.getName());
  }
});
origin: org.geotools/gt2-widgets-swing

/**
 * Returns the localized name for the given descriptor. The name will be fecth from the
 * "{@link OperationDescriptor#getResourceBundle LocalName}" resource, if available.
 * Otherwise, the {@linkplain RegistryElementDescriptor#getName non-localized name} is returned.
 */
private static String getName(final RegistryElementDescriptor descriptor, final Locale locale) {
  if (descriptor instanceof OperationDescriptor) {
    ResourceBundle resources = ((OperationDescriptor)descriptor).getResourceBundle(locale);
    if (resources != null) try {
      return resources.getString("LocalName");
    } catch (MissingResourceException exception) {
      // No localized name. Fallback on the default (non-localized) descriptor name.
      // No warning to report here, this exception is really not a problem.
    }
  }
  return descriptor.getName();
}
origin: it.geosolutions.jaiext.utilities/jt-utilities

public void unregisterDescriptor(RegistryElementDescriptor descriptor) {
  Lock writeLock = lock.writeLock();
  boolean changed = false;
  try {
    writeLock.lock();
    super.unregisterDescriptor(descriptor);
    changed = true;
    if (LOGGER.isLoggable(Level.FINEST)) {
      LOGGER.log(Level.FINEST, "Unregistered descriptor for the operation: "
          + descriptor.getName());
    }
    // If the collection is present, then it is updated
    if(collection != null && changed && descriptor instanceof OperationDescriptor){
      OperationItem item = new OperationItem((OperationDescriptor) descriptor);
      collection.removeSingleOp(item);
      if (LOGGER.isLoggable(Level.FINEST)) {
        LOGGER.log(Level.FINEST, "Removed descriptor for the operation: "
            + descriptor.getName()  + " from the registry operation list");
      }
    }
  } finally {
    writeLock.unlock();
  }
}
origin: it.geosolutions.jaiext.utilities/jt-utilities

if (LOGGER.isLoggable(Level.FINEST)) {
  LOGGER.log(Level.FINEST, "Registered descriptor for the operation: "
      + descriptor.getName());
  if (LOGGER.isLoggable(Level.FINEST)) {
    LOGGER.log(Level.FINEST, "Added descriptor for the operation: "
        + descriptor.getName()  + " to the registry operation list");
origin: geosolutions-it/jai-ext

public void unregisterDescriptor(RegistryElementDescriptor descriptor) {
  Lock writeLock = lock.writeLock();
  boolean changed = false;
  try {
    writeLock.lock();
    super.unregisterDescriptor(descriptor);
    changed = true;
    if (LOGGER.isLoggable(Level.FINEST)) {
      LOGGER.log(Level.FINEST, "Unregistered descriptor for the operation: "
          + descriptor.getName());
    }
    // If the collection is present, then it is updated
    if(collection != null && changed && descriptor instanceof OperationDescriptor){
      OperationItem item = new OperationItem((OperationDescriptor) descriptor);
      collection.removeSingleOp(item);
      if (LOGGER.isLoggable(Level.FINEST)) {
        LOGGER.log(Level.FINEST, "Removed descriptor for the operation: "
            + descriptor.getName()  + " from the registry operation list");
      }
    }
  } finally {
    writeLock.unlock();
  }
}
origin: geosolutions-it/jai-ext

if (LOGGER.isLoggable(Level.FINEST)) {
  LOGGER.log(Level.FINEST, "Registered descriptor for the operation: "
      + descriptor.getName());
  if (LOGGER.isLoggable(Level.FINEST)) {
    LOGGER.log(Level.FINEST, "Added descriptor for the operation: "
        + descriptor.getName()  + " to the registry operation list");
origin: Geomatys/geotoolkit

  /**
   * Unregisters all Geotk JAI operations.
   */
  @Override
  public void shutdown() {
    if (initialized) {
      final OperationRegistry registry = JAI.getDefaultInstance().getOperationRegistry();
      for (final String mode : registry.getRegistryModes()) {
        @SuppressWarnings("unchecked")
        final List<RegistryElementDescriptor> descriptors = registry.getDescriptors(mode);
        for (final RegistryElementDescriptor descriptor : descriptors) {
          final String operationName = descriptor.getName();
          if (operationName.startsWith("org.geotoolkit.")) {
            @SuppressWarnings("unchecked")
            final Iterator<RenderedImageFactory> rif = RIFRegistry.getIterator(registry, operationName);
            while (rif.hasNext()) {
              RIFRegistry.unregister(registry, operationName, PRODUCT_NAME, rif.next());
            }
            registry.unregisterDescriptor(descriptor);
          }
        }
      }
    }
  }
}
origin: Geomatys/geotoolkit

  /**
   * Counts the number of Geotk operations registered in the default JAI instance.
   */
  private static int countGeotkOperations() {
    int count = 0;
    final OperationRegistry registry = JAI.getDefaultInstance().getOperationRegistry();
    for (final String mode : registry.getRegistryModes()) {
      @SuppressWarnings("unchecked")
      final List<RegistryElementDescriptor> descriptors = registry.getDescriptors(mode);
      for (final RegistryElementDescriptor descriptor : descriptors) {
        final String operationName = descriptor.getName();
        if (operationName.startsWith("org.geotoolkit.")) {
          count++;
        }
      }
    }
    return count;
  }
}
origin: org.geotools/gt2-widgets-swing

final String operationName = descriptor.getName();
final List/*<String>*/ products = registry.getOrderedProductList(mode, operationName);
if (products != null) {
javax.media.jaiRegistryElementDescriptorgetName

Popular methods of RegistryElementDescriptor

  • getParameterListDescriptor

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ImageIO (javax.imageio)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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