it.tidalwave.util.logging.Logger.finer()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(14.8k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中it.tidalwave.util.logging.Logger.finer()方法的一些代码示例,展示了Logger.finer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.finer()方法的具体详情如下:
包路径:it.tidalwave.util.logging.Logger
类名称:Logger
方法名:finer

Logger.finer介绍

暂无

代码示例

代码示例来源:origin: it.tidalwave.metadata/it-tidalwave-metadata-impl

@Override
    public void propertyChange (@Nonnull final PropertyChangeEvent event) 
     {
      logger.finer("propertyChange(%s)", event);
//            if (event.getPropertyName().endsWith("Available")) // TODO
//              {
//                firePropertyChange("available", oldAvailable, isAvailable());
//              }
//
      // FIXME: this is disabled since it gets called from the setting of beans
      // Probably you should not bind beans to listener BEFORE populating them for the first time.
      // when they are read from the database and trigger spurious operations.
//            if (event.getPropertyName().equals(PROP_LATEST_MODIFICATION_TIME))
//              {
//                final Date latestModificationTime = getLatestModificationTime();
//                firePropertyChange(PROP_LATEST_MODIFICATION_TIME, oldLatestModificationTime, latestModificationTime);
//                oldLatestModificationTime = latestModificationTime;
//              }
     }
   };

代码示例来源:origin: it.tidalwave.bluebill.android/it-tidalwave-mobile-utilities

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
protected void setStatus (final @Nonnull Status status)
 {
  logger.finer("setStatus(%s)", status);
  final Status oldStatus = this.status;
  this.status = status;
  synchronized (this)
   {
    notifyAll();
   }
  propertyChangeSupport.firePropertyChange(PROP_STATUS, oldStatus, status);
 }

代码示例来源:origin: it.tidalwave.semantic/it-tidalwave-openrdf-elmo

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
@Override
public boolean isRegistered (final @Nonnull Class<?> clazz)
 {
  for (final Class<?> interfaceClass : interfaces)
   {
    logger.finer(">>>> probing %s", interfaceClass);
    if (interfaceClass.isAssignableFrom(clazz))
     {
      return true;
     }
   }
  return false;
 }

代码示例来源:origin: it.tidalwave.metadata/it-tidalwave-metadata-impl

@Nonnull 
 private Format findFormat (@Nonnull final Class<?> itemClass, 
               @Nonnull final String propertyName) 
  {
   logger.fine("findFormat(%s, %s", itemClass, propertyName);
   final MetadataItemFormatProvider formatProvider = formatProviderMapByClass.get(itemClass);
   final Format result = (formatProvider != null) ? formatProvider.getFormat(propertyName) : DEFAULT_FORMAT;
   logger.finer(">>>> returning %s", result);
   
   return result;
  }
}

代码示例来源:origin: it.tidalwave.semantic/it-tidalwave-openrdf-elmo

/*******************************************************************************************************************
  *
  * {@inheritDoc}
  *
  ******************************************************************************************************************/
 @Override @Nonnull
 public T findOrCreate (final @Nonnull QName qName, final @Nonnull EntityFactory.EntityInitializer<I> initializer)
  {
   try 
    {
     logger.finer("findOrCreate(%s, %s)", new Object[]{qName, initializer});
     return find(qName);
    }
   catch (NotFoundException e)
    {
     logger.finer(">>>> not found", new Object[0]);
     return create(qName, initializer);
    }    
  }
}

代码示例来源:origin: it.tidalwave.thesefoolishthings/it.tidalwave.beans

public T createEnhancedBean (final Object bean, final Object ... arguments)
 {
  logger.fine("createEnhancedItem(%s, %s) - interfaces: %s", bean, Arrays.asList(arguments), interfaces);
  final long time = System.currentTimeMillis();
  final Enhancer enhancer = new Enhancer();
  enhancer.setClassLoader(Thread.currentThread().getContextClassLoader());
  enhancer.setSuperclass(bean.getClass());
  enhancer.setInterfaces(new Class[] {interfaces});
  enhancer.setCallback(createInterceptor(bean, arguments));
  final T result = (T)enhancer.create();
  logger.finer(">>>> created decorator %s in %d msec", result, (int)(System.currentTimeMillis() - time));
  return result;
 }

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-location-elmo

/*******************************************************************************************************************
  *
  * Finds or creates a GeoCoderEntityProxy bound to the current Location according to the given GeoSchema.
  *
  ******************************************************************************************************************/
 @Nonnull
 private GeoCoderEntityProxy findGeoCoderEntityProxy (final @Nonnull GeoSchema geoSchema)
  throws NotFoundException
  {
   assert geoSchema != null : "null geoSchema";
   logger.fine("findGeoCoderEntityProxy(%s)", geoSchema);
   // TODO: cache it for the current transaction?
   final GeoCoderEntityProxy gcEntityProxy = ElmoGeoCoderEntityProxyFactory.findSame(this, geoSchema);
   logger.finer(">>>> returning %s", gcEntityProxy);
   return gcEntityProxy;
  }
}

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider

/*******************************************************************************************************************
   *
   *
   ******************************************************************************************************************/
  @Override
  protected void forceTextureLoad (final @Nonnull MercatorTextureTile tile)
   {
    logger.finer("forceTextureLoad(%s)", tile);
    
    try
     {
//                CACHE.findFile(tile.getPath(), true);
      final URL textureURL = resourceCache.findCachedResourceUri(tile.getResourceURL().toURI()).toURL();
//        if (textureURL != null && !this.isTextureExpired(tile, textureURL))
      this.loadTexture(tile, textureURL);
     }
    catch (NotFoundException e)
     {
      // FIXME: ??
     }
    catch (Exception e)
     {
      throw new RuntimeException(e);
     }
   }

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
private static TextureData readTexture (final @Nonnull URL url, boolean useMipMaps)
 {
  logger.finer("readTexture(%s, %s)", url, useMipMaps);
  try
   {
    return TextureIO.newTextureData(url, useMipMaps, null);
   }
  catch (Exception e)
   {
    logger.severe("Exception reading texture: %s %s", url, e);
    logger.throwing(CLASS, "readTexture", e);
    return null;
   }
 }

代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-visual

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
private void updateWidgetPositions()
 {
  logger.fine("updateWidgetPositions()");
  for (final Widget widget : getChildrenRecursively(scene))
   {
    updateWidgetPosition(widget);
   }
  logger.finer(">>>> updateWidgetPositions done");
 }

代码示例来源:origin: it.tidalwave.semantic/it-tidalwave-openrdf-elmo

/*******************************************************************************************************************
 *
 * {@inheritDoc}
 *
 ******************************************************************************************************************/
@Override @Nonnull
public T find (final @Nonnull QName qName)
 throws NotFoundException
 {
  logger.finer("find(%s)", new Object[]{qName});
  Entity object = this.em.find(qName);
  if (object == null)
   {
    throw new NotFoundException("Can't find entity with id=" + qName);
   }
  if (!(this.interfaceClass.isAssignableFrom(object.getClass())))
   {
    logger.fine(">>>> **** workaround, as a bogus entity has been returned", new Object[0]);
    throw new NotFoundException("Can't find entity with id=" + qName);
   }
  return (T)Wrapper.wrap(object);
 }

代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-persistence-maintenance

/***************************************************************************
   *
   *
   **************************************************************************/
  protected void importFromTable (final String tableName)
   throws SQLException
   {
    logger.fine("importFromTable(%s)", tableName);
    logger.finer(">>>> enforcing the update for %s...", tableName);
    final TableManipulator otherManipulator = maintainer.updateEntity(new EntityAndTablePair(entityAndTablePair.getEntityClass(), tableName));
    logger.finer(">>>> enforced the update for %s", tableName);
    
    assert (otherManipulator != null);

//        if (otherManipulator != null)
     {
      otherManipulator.destTableName = entityAndTablePair.getTableName();
      // Disable this manipulator, it will be otherManipulator's responsibility to restore the table.
      // But link its columns to the ones here so they will be updated.
      // FIXME: it would be better to disable otherManipulator and do changes in manipulator
//            manipulator.disableRestore();s
      manipulator.columns = otherManipulator.columns;
      manipulator.tempTableName = otherManipulator.tempTableName;
     }
   }

代码示例来源:origin: it.tidalwave.semantic/it-tidalwave-openrdf-elmo

/***************************************************************************
   *
   *
   **************************************************************************/
  @Override
  @Nonnegative
  public int count()
   {
    logger.fine("count()");
    final ElmoQuery query = createQuery();
    query.setFirstResult(firstResult).setMaxResults(maxResults);
    final Integer result = query.getResultList().size();
    // FIXME: no count(*) in SPARQL :-((
    // See http://www.openrdf.org/issues/browse/SES-411
//        final ElmoQuery query = createQuery("count (?object)", false);
//        final Integer result = (Integer)query.getSingleResult();
    logger.finer(">>>> returning %d", result);

    return result;
   }

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-location-elmo

/*******************************************************************************************************************
 *
 * {@inheritDoc}
 *
 ******************************************************************************************************************/
@Nonnull
@Override
public synchronized GeoSchema findSchemaByName (@Nonnull final String name)
 throws NotFoundException
 {
  logger.fine("findSchemaByName(%s)", name);
  // FIXME: don't cache to manage different Repositories
  // You should instead query the repository first
  // TODO: how to keep a FlyWeight? Cache indexed by Repository?
  if (getSchemaNames().contains(name))
   {
    final GeoCoderManager geoCoderManager = Locator.find(GeoCoderManager);
    final GeoSchema schema = ElmoGeoSchemaFactory.findOrCreate(geoCoderManager.findGeoCoderByName(name));
    logger.finer(">>>> returning %s", schema);
    return schema;
   }
  throw new NotFoundException(name);
 }

代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-visual

/***************************************************************************
 *
 *
 **************************************************************************/
public void fixAnchors()
 {
  logger.fine("fixAnchors()");
  final Point sourcePoint = createSourceAnchor().getRelatedSceneLocation();
  final Point targetPoint = createTargetAnchor().getRelatedSceneLocation();
  logger.finer(">>>> sourcePoint: %s vs %s", sourcePoint, sourcePointCache);
  logger.finer(">>>> targetPoint: %s vs %s", targetPoint, targetPointCache);
  if (!targetPoint.equals(targetPointCache))
   {
    setTargetAnchor(AnchorFactory.createFixedAnchor(targetPointCache = targetPoint));
   }
  if (!sourcePoint.equals(sourcePointCache))
   {
    setSourceAnchor(AnchorFactory.createFixedAnchor(sourcePointCache = sourcePoint));
   }
  logger.finer(">>>> fixAnchors() done");
 }

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
private boolean loadTexture (final @Nonnull MercatorTextureTile tile, final @Nonnull URL textureURL)
 {
  logger.finer("loadTexture(%s, %s)", tile, textureURL);
  
  TextureData textureData;
  synchronized (this.fileLock)
   {
    textureData = readTexture(textureURL, this.isUseMipMaps());
   }
  if (textureData == null)
   {
    return false;
   }
  tile.setTextureData(textureData);
  if (tile.getLevelNumber() != 0 || !this.isRetainLevelZeroTiles())
   {
    this.addTileToCache(tile);
   }
  return true;
 }

代码示例来源:origin: it.tidalwave.semantic/it-tidalwave-openrdf-elmo

/***************************************************************************
 *
 * {@inheritDoc}
 *
 **************************************************************************/
@Nonnull
@Override
public List<? extends T> results()
 {
  final ElmoQuery query = createQuery();
  logger.fine(">>>> limit: first: %d, max: %d", firstResult, maxResults);
  query.setFirstResult(firstResult).setMaxResults(maxResults);
  final List results = Wrapper.wrap(query.getResultList());
  logger.finer(">>>>results: %s", results);
  return results;
 }

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-location-elmo

/*******************************************************************************************************************
 *
 * {@inheritDoc}
 *
 ******************************************************************************************************************/
@Nonnull @Override
public synchronized GeoLocation getRoot()
 {
  logger.fine("getRoot() - %s", this);
  assert geoCoder.get() != null : "Null geoCoder";
  if (rootLocation == null)
   {
    final GeoCoderEntityProxy gcEntityProxy = ElmoGeoCoderEntityProxyFactory.findOrCreate(this, geoCoder.get().getRoot());
    rootLocation = ElmoGeoLocationFactory.findOrCreate(this, gcEntityProxy);
   }
  logger.finer(">>>> returning %s", rootLocation);
  
  return rootLocation;
 }

代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
@Override
protected void requestTexture (final @Nonnull DrawContext dc, final @Nonnull MercatorTextureTile tile)
 {
  logger.finer("requestTexture(%s, %s)", dc, tile);
  
  final Vec4 centroid = tile.getCentroidPoint(dc.getGlobe());
  if (this.getReferencePoint() != null)
   {
    tile.setPriority(centroid.distanceTo3(this.getReferencePoint()));
   }
  final RequestTask task = new RequestTask(tile, this);
  this.getRequestQ().add(task);
 }

代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-windows

/*******************************************************************************************************************
  *
  * FIXME: make it private
  *
  ******************************************************************************************************************/
 public void installRoles()
  {
   final String path = "/Roles/" + ((id != null) ? id : preferredID());
   logger.finer(">>>> looking up default roles from path %s...", path);
   roleSet.setInjectedLookup(getLookup()); // a subclass might have enhanced it
   roleSet.setStaticRoles(Lookups.forPath(path).lookupAll(Object.class));
   roleSet.initialize();
   final GuiBuilder guiBuilder = roleSet.getLookup().lookup(GuiBuilder.class);
   if (guiBuilder != null)
    {
     add(guiBuilder.createGui(), BorderLayout.CENTER);
    }
  }
}

相关文章