org.openide.util.Utilities.activeReferenceQueue()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(140)

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

Utilities.activeReferenceQueue介绍

[英]variable holding the activeReferenceQueue
[中]保存activeReferenceQueue的变量

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-util

public ActiveRef(Image o, Map<T,ActiveRef<T>> holder, T key) {
  super(o, Utilities.activeReferenceQueue());
  this.holder = holder;
  this.key = key;
}

代码示例来源:origin: org.netbeans.api/org-openide-filesystems

public FileChangeImpl(FileChangeListener listener, File path) {
  super(listener, Utilities.activeReferenceQueue());
  assert path != null;
  this.path = path;
}

代码示例来源:origin: org.netbeans.api/org-openide-util

ListenerReference(Object ref, WeakListenerImpl weakListener) {
  super(ref, Utilities.activeReferenceQueue());
  this.weakListener = weakListener;
}

代码示例来源:origin: org.netbeans.api/org-openide-filesystems

public Ref(T fo) {
  super(fo, Utilities.activeReferenceQueue());
}

代码示例来源:origin: org.netbeans.api/org-openide-filesystems

DeepListener(FileChangeListener listener, File path, FileFilter ff, Callable<Boolean> stop) {
  super(listener, Utilities.activeReferenceQueue());
  this.path = path;
  this.stop = stop;
  this.filter = ff;
  this.hash = 11 * listener.hashCode() + 7 * path.hashCode();
}

代码示例来源:origin: org.netbeans.api/org-openide-util

/**
 * Create a soft reference with timeout.
 * The supplied map serves double duty as a synchronization lock
 * for the reference's state changes.
 * @param o the referent
 * @param m a map in which this reference may serve as a value
 * @param k the key whose value in <code>m</code> may be this reference
 */
public TimedSoftReference(T o, Map m, Object k) {
  super(o, Utilities.activeReferenceQueue());
  this.o = o;
  this.m = m;
  this.k = k;
  task = RP.create(this);
  task.schedule(TIMEOUT);
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

public GMReference(ContextManager m, LookupRef context, boolean survive) {
  super(m, Utilities.activeReferenceQueue());
  this.context = context;
  this.survive = survive;
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

public GMReference(GlobalManager m, LookupRef context, boolean survive) {
  super(m, Utilities.activeReferenceQueue());
  this.context = context;
  this.survive = survive;
}

代码示例来源:origin: org.netbeans.api/org-openide-util-ui

public ActiveRef(Image o, Map<T,ActiveRef<T>> holder, T key) {
  super(o, Utilities.activeReferenceQueue());
  this.holder = holder;
  this.key = key;
}

代码示例来源:origin: org.netbeans.api/org-openide-nodes

public ChArrRef(ChildrenArray referent, boolean weak) {
  super(referent, Utilities.activeReferenceQueue());
  this.chArr = weak ? null : referent;
}

代码示例来源:origin: org.netbeans.api/org-openide-nodes

public NodeRef(Node node, EntryInfo info) {
  super(node, Utilities.activeReferenceQueue());
  info.lazy().registerNode(1, info);
  this.info = info;
}

代码示例来源:origin: in.jlibs/org-openide-util

public ActiveRef(Image o, Map<T,ActiveRef<T>> holder, T key) {
  super(o, Utilities.activeReferenceQueue());
  this.holder = holder;
  this.key = key;
}

代码示例来源:origin: org.netbeans.api/org-openide-text

public StrongRef(StyledDocument doc, boolean strong) {
  super(doc, org.openide.util.Utilities.activeReferenceQueue());
  if (strong) {
    this.doc = doc;
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

public ListenerReference (
  Object ref,
  WeakListenerImpl weakListener
) {
  super (ref, Utilities.activeReferenceQueue());
  this.weakListener = weakListener;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

public ListenerReference (
  Object ref,
  WeakListener weakListener
) {
  super (ref, Utilities.activeReferenceQueue());
  this.weakListener = weakListener;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide-loaders

ItemReference(DataObject dobject, Item item) {
  super(dobject, org.openide.util.Utilities.activeReferenceQueue());
  this.item = item;
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

public ActiveRef(Image o, Map<T,ActiveRef<T>> holder, T key) {
  super(o, Utilities.activeReferenceQueue());
  this.holder = holder;
  this.key = key;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

public ActiveRef (Object o, Map holder, Object key) {
  super (o, Utilities.activeReferenceQueue());
  this.holder = holder;
  this.key = key;
}

代码示例来源:origin: org.codehaus.mevenide/nb-project

public Holder(FileChangeSupportListener listener, File path) {
  super(listener, Utilities.activeReferenceQueue());
  assert path != null;
  this.path = path;
  locateCurrent();
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-spring-beans

public Holder(FileChangeSupportListener listener, File path) {
  super(listener, Utilities.activeReferenceQueue());
  assert path != null;
  this.path = path;
  locateCurrent();
}

相关文章