db4o 7.4

com.db4o.defragment
Class AvailableClassFilter

java.lang.Object
  extended by com.db4o.defragment.AvailableClassFilter
All Implemented Interfaces:
StoredClassFilter

public class AvailableClassFilter
extends java.lang.Object
implements StoredClassFilter

Filter that accepts only StoredClass instances whose corresponding Java class is currently known.


Constructor Summary
AvailableClassFilter()
          Will accept only classes that are known to the classloader that loaded this class.
AvailableClassFilter(java.lang.ClassLoader loader)
          Will accept only classes that are known to the given classloader.
 
Method Summary
 boolean accept(StoredClass storedClass)
          Will accept only classes whose corresponding platform class is known to the configured classloader.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailableClassFilter

public AvailableClassFilter()
Will accept only classes that are known to the classloader that loaded this class.


AvailableClassFilter

public AvailableClassFilter(java.lang.ClassLoader loader)
Will accept only classes that are known to the given classloader.

Parameters:
loader - The classloader to check class names against
Method Detail

accept

public boolean accept(StoredClass storedClass)
Will accept only classes whose corresponding platform class is known to the configured classloader.

Specified by:
accept in interface StoredClassFilter
Parameters:
storedClass - The YapClass instance to be checked
Returns:
true if the corresponding platform class is known to the configured classloader, false otherwise

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.