public abstract class AbstractClassCollector extends Object implements ClassCollector
ClassCollector
Constructor and Description |
---|
AbstractClassCollector() |
Modifier and Type | Method and Description |
---|---|
Collection<Class<?>> |
collect(URL source,
ClassLoader classLoader)
指定したリソース(
URL )から、ClassLoader が
ロード可能な全てのクラスリソースを収集します。この時、 URL は必ずクラスパスのルートを示し、パッケージ
階層を表すパスを含む事はできません。
(jarファイルであれば、jarファイルそのものを指すURL、
ファイルであれば、クラスパスが通じたルートディレクトリ
を表すURL、等)取得可能なクラスが存在しない場合は空の Collection
を返します。 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collect
public Collection<Class<?>> collect(URL source, ClassLoader classLoader)
ClassCollector
URL
)から、ClassLoader
が
ロード可能な全てのクラスリソースを収集します。URL
は必ずクラスパスのルートを示し、パッケージ
階層を表すパスを含む事はできません。
(jarファイルであれば、jarファイルそのものを指すURL、
ファイルであれば、クラスパスが通じたルートディレクトリ
を表すURL、等)Collection
を返します。collect
in interface ClassCollector
source
- URL
classLoader
- ClassLoader
Class
Copyright © 2014 Analog Web Framework Development Team. All Rights Reserved.