org.seasar.junitcdi.core.internal
クラス BeanDeploymentArchiveImpl

java.lang.Object
  上位を拡張 org.seasar.junitcdi.core.internal.BeanDeploymentArchiveImpl
すべての実装されたインタフェース:
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

public class BeanDeploymentArchiveImpl
extends Object
implements org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

JUnit環境におけるBeanDeploymentArchiveの実装クラスです.

作成者:
koichik

フィールドの概要
protected  Set<Class<?>> beanClasses
          bean クラスのSet
protected  Set<URL> beansXmls
          beans.xmlSet
protected  org.jboss.weld.bootstrap.api.ServiceRegistry serviceRegistry
          サービスのレジストリ
 
コンストラクタの概要
BeanDeploymentArchiveImpl()
          インスタンスを構築します.
 
メソッドの概要
 Collection<Class<?>> getBeanClasses()
           
 Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
           
 Collection<URL> getBeansXml()
           
 Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>> getEjbs()
           
 String getId()
           
 org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
           
protected  void scan()
          beans.xmlファイルが存在するディレクトリまたはJarファイルからbeanクラスをスキャンします.
protected  void scanDirectory(ClassLoader loader, File directory, String path)
          ディレクトリに含まれるbeanクラスをスキャンします.
protected  void scanJar(ClassLoader loader, File file)
          Jarファイルに含まれるbeanクラスをスキャンします.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

serviceRegistry

protected final org.jboss.weld.bootstrap.api.ServiceRegistry serviceRegistry
サービスのレジストリ


beanClasses

protected final Set<Class<?>> beanClasses
bean クラスのSet


beansXmls

protected final Set<URL> beansXmls
beans.xmlSet

コンストラクタの詳細

BeanDeploymentArchiveImpl

public BeanDeploymentArchiveImpl()
インスタンスを構築します.

メソッドの詳細

getBeanClasses

public Collection<Class<?>> getBeanClasses()
定義:
インタフェース org.jboss.weld.bootstrap.spi.BeanDeploymentArchive 内の getBeanClasses

getBeanDeploymentArchives

public Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
定義:
インタフェース org.jboss.weld.bootstrap.spi.BeanDeploymentArchive 内の getBeanDeploymentArchives

getBeansXml

public Collection<URL> getBeansXml()
定義:
インタフェース org.jboss.weld.bootstrap.spi.BeanDeploymentArchive 内の getBeansXml

getEjbs

public Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>> getEjbs()
定義:
インタフェース org.jboss.weld.bootstrap.spi.BeanDeploymentArchive 内の getEjbs

getId

public String getId()
定義:
インタフェース org.jboss.weld.bootstrap.spi.BeanDeploymentArchive 内の getId

getServices

public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
定義:
インタフェース org.jboss.weld.bootstrap.spi.BeanDeploymentArchive 内の getServices

scan

protected void scan()
beans.xmlファイルが存在するディレクトリまたはJarファイルからbeanクラスをスキャンします.


scanDirectory

protected void scanDirectory(ClassLoader loader,
                             File directory,
                             String path)
ディレクトリに含まれるbeanクラスをスキャンします.

パラメータ:
loader - クラスローダ
directory - ディレクトリ
path - 基点となるディレクトリからのパス

scanJar

protected void scanJar(ClassLoader loader,
                       File file)
Jarファイルに含まれるbeanクラスをスキャンします.

パラメータ:
loader - クラスローダ
file - Jarファイル


Copyright © 2010 The Seasar Foundation. All Rights Reserved.