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

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

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

Logger.fine介绍

暂无

代码示例

代码示例来源:origin: it.tidalwave.bluebill/it-tidalwave-bluebill-factsheet-xenocanto

@Override
public void flush()
 {
  logger.fine(buffer.toString());
 }

代码示例来源: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.netbeans/it-tidalwave-netbeans-persistence-maintenance

/***************************************************************************
 *
 *
 **************************************************************************/
protected synchronized void closeConnection()
 throws SQLException 
 {
  logger.fine("closeConnection()");
  
  if (connection != null)
   {
    connection.commit();
    connection.close();
    connection = 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.bluebill/it-tidalwave-bluebill-factsheet-xenocanto

@Override
public void write (char[] chars, int from, int lenght)
 {
  for (int i = from; i < from + lenght; i++)
   {
    if (chars[i] == 13)
     {
      logger.fine(buffer.toString());
      buffer = new StringBuilder();
     }
    else
     {
      buffer.append(chars[i]);
     }
   }
 }

代码示例来源: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.netbeans/it-tidalwave-netbeans-nodes

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
@Override @Nonnull
public List<Action> findNodeActions (final @Nonnull Class<? extends Node> nodeClass)
 {
  List<Action> list = actionsByNodeClass.get(nodeClass);
  if (list == null)
   {
    list = Collections.<Action>emptyList();
   }
  logger.fine("findNodeActions(%s) returning %s", nodeClass, list);
  return list;
 }

代码示例来源: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.netbeans/it-tidalwave-netbeans-persistence-impl

private void dumpConfiguration (final Ejb3Configuration config)
 {
  final Properties properties = config.getProperties();
  
  for (final Object propertyName : new TreeSet<Object>(properties.keySet()))
   {
    logger.fine("JPA configuration: %s = %s", propertyName, properties.get(propertyName));
   }
 }

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

@Override @Nonnull
public Connection getConnection (@Nonnull final String username, @Nonnull final String password)
 {
  logger.fine("getConnection(%s, %s)", username, password);
  return getConnection();
 }

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

/***************************************************************************
 *
 * {@inheritDoc}
 * 
 **************************************************************************/
@Nonnull 
@Override
public synchronized <Item> MetadataItemHolder<Item> findOrCreateItem (@Nonnull final Class<Item> metadataItemClass, 
                                   @Nonnull final FindOption ... options)
 throws NoSuchMetadataTypeException 
 {
  logger.fine("findOrCreateItem(%s, %s) - %s", metadataItemClass, Arrays.toString(options), dataObject);
  final List<MetadataItemHolder<Item>> items = findOrCreateItems(metadataItemClass, options);
  return items.get(0); // is empty for classes not supported
 }

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

/***************************************************************************
 *
 *
 **************************************************************************/
public void registerWidgetFactory (@Nonnull final Type type,
                  @Nonnull final EntityWidgetFactory widgetFactory)
 {
  logger.fine("registerWidgetFactory(%s, %s)", type, widgetFactory);
  Parameters.notNull("type", type);
  Parameters.notNull("widgetFactory", widgetFactory);
  entityWidgetFactoryMapByType.put(type, widgetFactory);
 }

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

/***************************************************************************
 *
 *
 **************************************************************************/
public void registerWidgetFactory (@Nonnull final Type type,
                  @Nonnull final RelationWidgetFactory widgetFactory)
 {
  logger.fine("registerWidgetFactory(%s, %s)", type, widgetFactory);
  Parameters.notNull("type", type);
  Parameters.notNull("widgetFactory", widgetFactory);
  
  relationWidgetFactoryMapByType.put(type, widgetFactory);
 }

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

@Override @CheckForNull
public synchronized <T> T lookup (final @Nonnull Class<T> clazz)
 {
  logger.fine("lookup(%s)", clazz);
  final Collection<? extends T> instances = lookup(new Template<T>(clazz)).allInstances();
  return instances.isEmpty() ? null : instances.iterator().next();
 }

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

private void setLazyToFalse (final Ejb3Configuration config)
  {
   for (final Iterator<PersistentClass> i = config.getClassMappings(); i.hasNext(); )
    {
     final PersistentClass persistentClass = i.next();
     persistentClass.setLazy(false);
     logger.fine("Set lazy=false for %s", persistentClass.getEntityName());
    }
  }
}

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

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
@Override
protected final void handleDelete()
 throws IOException
 {
  logger.fine("handleDelete()");
  super.handleDelete();
  fireDataObjectRemoved();
 }

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

@Override
public void movementStarted (final @Nonnull Widget widget)
 {
  logger.fine("movementStarted(%s)", widget);
  originalLocation = widget.getPreferredLocation();
  dragBehaviour.nodeDragStarted(new DragEvent(node, widget, originalLocation));
 }

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

@Override @Nonnull
public Connection getConnection() 
 {
  logger.fine("getConnection()");
  final EntityManager em = TxTask.getEntityManager();
  final PersistenceImpl persistence = (PersistenceImpl)Locator.find(Persistence.class);
  return persistence.getJdbcConnection(em);
 }

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

@Override
 public void setNewLocation (final @Nonnull Widget widget, final @Nonnull Point location)
  {
   logger.fine("setNewLocation(%s, %s)", widget, location);
   widget.setPreferredLocation(location);
   final Point layerLocation = layer.convertLocalToScene(location);
   final Point viewLocation = scene.convertSceneToView(layerLocation);
   final Dimension dimension = widget.getPreferredSize();
   if (dimension != null)
    {
     viewLocation.translate(dimension.width / 2, dimension.height / 2);
    }
   dragBehaviour.nodeDragged(new DragEvent(node, widget, viewLocation));
  }
};

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

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
@Override
public void fitView (final @Nonnull Sector sector)
 {
  logger.info("fitView(%s)", sector);
  final double angle = sector.getMaxDelta();
  final OrbitView view = (OrbitView)worldWindow.getView();
  final Angle fov = view.getFieldOfView();
  // TODO: see http://forum.worldwindcentral.com/showthread.php?p=49433#post49433
  final double elevation = 6400 * 1000 * angle / (fov.getDegrees() / 2);
  logger.fine(">>>> fov: %f, sector delta: %s, elevation: %f", fov.getDegrees(), angle, elevation);
  setCenterPosition(sector.getCenter(), elevation, Angle.ZERO, Angle.fromDegrees(45));
 }

相关文章