JavaTM Platform
Standard Ed. 6

java.beans.beancontext
클래스 BeanContextSupport

java.lang.Object 
  상위를 확장 java.beans.beancontext.BeanContextChildSupport 
      상위를 확장 java.beans.beancontext.BeanContextSupport
모든 구현된 인터페이스:
BeanContext , BeanContextChild , BeanContextServiceRevokedListener , BeanContextServicesListener , DesignMode , PropertyChangeListener , VetoableChangeListener , Visibility , Serializable , Iterable , Collection , EventListener
직계의 기존의 서브 클래스:
BeanContextServicesSupport


public class BeanContextSupport
extends BeanContextChildSupport
implements BeanContext , Serializable , PropertyChangeListener , VetoableChangeListener

이 헬퍼 클래스는 java.beans.beancontext.BeanContext 인터페이스의 유틸리티의 구현을 제공합니다.

이 클래스는, BeanContext 인터페이스를 직접 구현하기 위해(때문에), 이 구현을 서브 클래스화하는 것에 의해, 혹은 다른 인스턴스로부터 이 클래스의 인스턴스의 특별한 위양을 개것에 의해 사용되는 것을 목적으로 하고 있습니다.

도입된 버젼:
1.2
관련 항목:
직렬화 된 형식

상자의 클래스의 개요
protected  class BeanContextSupport.BCSChild
           
protected static class BeanContextSupport.BCSIterator
          protected final 서브 클래스.
 
필드의 개요
protected  ArrayList bcmListeners
          protected ArrayList bcmListeners 필드에의 모든 액세스는, 그 객체에 동기화 됩니다.
protected  HashMap children
          protected HashMap children 필드에의 모든 액세스는, 그 객체에 동기화 됩니다.
protected  boolean designTime
          이 객체가 현재, 설계시 모드인가 어떤가를 나타내는 boolean 입니다.
protected  Locale locale
          BeanContext 의 현재의 로케일입니다.
protected  boolean okToUseGui
          이 인스턴스가 GUI 를 draw 할 수 있을지 어떨지를 나타내는,boolean 입니다.
 
클래스 java.beans.beancontext. BeanContextChildSupport 로부터 상속된 필드
beanContext , beanContextChildPeer , pcSupport , rejectedSetBCOnce , vcSupport
 
인터페이스 java.beans.beancontext. BeanContext 로부터 상속된 필드
globalHierarchyLock
 
인터페이스 java.beans. DesignMode 로부터 상속된 필드
PROPERTYNAME
 
생성자 의 개요
BeanContextSupport ()
          다른 객체의 위양이 아닌 인스턴스를 생성합니다.
BeanContextSupport (BeanContext  peer)
          디폴트의 로케일을 사용해 인스턴스를 생성합니다.
BeanContextSupport (BeanContext  peer, Locale  lcle)
          지정된 로케일을 사용해 인스턴스를 생성합니다.
BeanContextSupport (BeanContext  peer, Locale  lcle, boolean dtime)
          지정된 로케일을 사용해 설계 모드로 인스턴스를 생성합니다.
BeanContextSupport (BeanContext  peer, Locale  lcle, boolean dTime, boolean visible)
          BeanContextSupport 의 인스턴스를 생성합니다.
 
메소드의 개요
 boolean add (Object  targetChild)
          이 BeanContext 내에 아이를 추가, 즉 상자로 합니다.
 boolean addAll (Collection  c)
          Children 세트에 Collection 를 추가합니다 (지원되어 있지 않다).
 void addBeanContextMembershipListener (BeanContextMembershipListener  bcml)
          BeanContextMembershipListener 를 추가합니다.
 boolean avoidingGui ()
          BeanContext 의 아이가 GUI 의 사용을 피할지 어떨지 판단하는데 사용됩니다.
protected  Iterator bcsChildren ()
          이 BeanContext 의 아이 모든 반복자를 돌려줍니다.
protected  void bcsPreDeserializationHook (ObjectInputStream  ois)
          defaultWriteObject()의 뒤, 아이를 직렬화하기 전의 readObject 에 의해 불려 갑니다.
protected  void bcsPreSerializationHook (ObjectOutputStream  oos)
          defaultWriteObject()의 뒤, 아이를 직렬화하기 전의 writeObject 에 의해 불려 갑니다.
protected  void childDeserializedHook (Object  child, BeanContextSupport.BCSChild  bcsc)
          새롭고 직렬화 복원된 아이 및 BCSChild 를 사용해 readObject 에 의해 불려 갑니다.
protected  void childJustAddedHook (Object  child, BeanContextSupport.BCSChild  bcsc)
          서브 클래스는 이 메소드를 오버라이드(override) 해, 아이가 추가되어, 이벤트 통지가 발생하기 전에, 간단하게 add() 시멘틱스를 확장할 수 있습니다.
protected  void childJustRemovedHook (Object  child, BeanContextSupport.BCSChild  bcsc)
          서브 클래스는 이 메소드를 오버라이드(override) 해, 아이가 삭제되어, 이벤트 통지가 발생하기 전에, 간단하게 remove() 시멘틱스를 확장할 수 있습니다.
protected static boolean classEquals (Class  first, Class  second)
          2 개의 클래스 객체 또는 그러한 이름이 같은가 어떤가를 판정합니다.
 void clear ()
          아이를 클리어 합니다 (지원되어 있지 않다).
 boolean contains (Object  o)
          지정된 객체가 이 BeanContext 내에 있을지 어떨지를 판정합니다.
 boolean containsAll (Collection  c)
          지정되고 있는 Collection 의 모든 객체가, 이 BeanContext 의 아이인가 어떤가를 판정합니다.
 boolean containsKey (Object  o)
          지정된 객체가 이 BeanContext 내에 있을지 어떨지를 판정합니다.
protected  Object [] copyChildren ()
          이 BeanContext 의 아이의 카피를 가져옵니다.
protected  BeanContextSupport.BCSChild createBCSChild (Object  targetChild, Object  peer)
           서브 클래스는 이 메소드를 오버라이드(override) 하는 것으로써, 세트에 아이를 추가하는 add() 메소드나 다른 Collection 메소드를 오버라이드(override) 하는 일 없이, Child 의 독자적인 서브 클래스를 삽입할 수가 있습니다.
protected  void deserialize (ObjectInputStream  ois, Collection  coll)
          컬렉션을 직렬화 복원하기 위해서(때문에) readObject 에 의해 사용됩니다.
 void dontUseGui ()
          이 인스턴스에 GUI 를 draw 할 수 없는 것을 통지합니다.
protected  void fireChildrenAdded (BeanContextMembershipEvent  bcme)
          BeanContextMembershipListener 인터페이스의 BeanContextshipEvent 를 트리거합니다.
protected  void fireChildrenRemoved (BeanContextMembershipEvent  bcme)
          BeanContextMembershipListener 인터페이스의 BeanContextshipEvent 를 트리거합니다.
 BeanContext getBeanContextPeer ()
          이 객체가 구현을 제공하는 BeanContext 의 인스턴스를 가져옵니다.
protected static BeanContextChild getChildBeanContextChild (Object  child)
          지정된 아이의 BeanContextChild (존재하는 경우)를 가져옵니다.
protected static BeanContextMembershipListener getChildBeanContextMembershipListener (Object  child)
          지정된 아이의 BeanContextMembershipListener (존재하는 경우)를 가져옵니다.
protected static PropertyChangeListener getChildPropertyChangeListener (Object  child)
          지정된 아이의 PropertyChangeListener (존재하는 경우)를 가져옵니다.
protected static Serializable getChildSerializable (Object  child)
          지정된 Child 에 관련한 Serializable (존재하는 경우)를 가져옵니다.
protected static VetoableChangeListener getChildVetoableChangeListener (Object  child)
          지정된 아이의 VetoableChangeListener (존재하는 경우)를 가져옵니다.
protected static Visibility getChildVisibility (Object  child)
          지정된 아이에게 관련한 Component (존재하는 경우)를 가져옵니다.
 Locale getLocale ()
          이 BeanContext 의 로케일을 가져옵니다.
 URL getResource (String  name, BeanContextChild  bcc)
          java.lang.ClassLoader.getResource() 와 같이, 이 메소드에 의해 BeanContext 구현이 아이 Component 와 기본적인 ClassLoader 와의 사이에 동작을 삽입할 수가 있습니다.
 InputStream getResourceAsStream (String  name, BeanContextChild  bcc)
          java.lang.ClassLoader.getResourceAsStream() 와 같이, 이 메소드에 의해 BeanContext 구현이 아이 Component 와 기본적인 ClassLoader 와의 사이에 동작을 삽입할 수가 있습니다.
protected  void initialize ()
          BeanContextSupport 인스턴스의 과도 상태를 초기화하기 위해서, 생성자 및 readObject 로부터 불려 가는 protected 메소드입니다.
 Object instantiateChild (String  beanName)
           instantiateChild 메소드는, Bean 를 상자로 해 BeanContext 에 인스턴스를 생성하는 처리를 단순화 하는 BeanContext 의 간이 훅입니다.
 boolean isDesignTime ()
          이 객체가 현재, 설계시 모드인가 어떤가를 보고합니다.
 boolean isEmpty ()
          이 BeanContext 가 빈 상태(empty)인가 어떤가를 보고합니다.
 boolean isSerializing ()
          이 BeanContext 는 직렬화의 처리중인가
 Iterator iterator ()
          이 BeanContext 로 상자가 된 JavaBean 또는 BeanContext 의 인스턴스를 가져옵니다.
 boolean needsGui ()
           일반적으로, 이 메소드는 구현측이 GUI 를 필요로 하고 있는지 어떤지를 판단하기 위해서(때문에), 환경으로부터 불려 갑니다.
 void okToUseGui ()
          이 인스턴스에 GUI 를 draw 할 수 있는 것을 통지합니다.
 void propertyChange (PropertyChangeEvent  pce)
          서브 클래스는, 아이의 프로퍼티의 변경을 감시하기 위해서 포괄하는 일이 있습니다.
 void readChildren (ObjectInputStream  ois)
          이 클래스의 인스턴스가 BeanContext 프로토콜 ( 및 그 서브 프로토콜)의 구현의 위양으로서 사용될 때는, 직렬화 복원 시에 「닭이 앞이나 알이 앞인가」의 문제가 일어납니다.
 boolean remove (Object  targetChild)
          이 BeanContext 로부터 아이를 삭제합니다.
protected  boolean remove (Object  targetChild, boolean callChildSetBC)
          예기치 않은 setBeanContext 혹은 remove() 호출로 삭제되는 경우, 내부 삭제가 사용됩니다.
 boolean removeAll (Collection  c)
          지정된 모든 아이를 삭제합니다 (지원되어 있지 않다).
 void removeBeanContextMembershipListener (BeanContextMembershipListener  bcml)
          BeanContextMembershipListener 를 삭제합니다.
 boolean retainAll (Collection  c)
          지정된 아이만을 보관 유지합니다 (지원되어 있지 않다).
protected  void serialize (ObjectOutputStream  oos, Collection  coll)
          컬렉션을 직렬화하기 위해서(때문에) writeObject 에 의해 사용됩니다.
 void setDesignTime (boolean dTime)
          이 BeanContext 에 새로운 설계시 모드를 설정합니다.
 void setLocale (Locale  newLocale)
          이 BeanContext 의 로케일을 설정합니다.
 int size ()
          이 BeanContext 로 상자가 된 현재의 아이의 개수를 가져옵니다.
 Object [] toArray ()
          이 BeanContext 로 상자가 된 JavaBean 또는 BeanContext 의 인스턴스를 가져옵니다.
 Object [] toArray (Object [] arry)
          이 배열내에 있는 형태와 일치하는 BeanContext 의 모든 아이를 포함한 배열을 가져옵니다.
protected  boolean validatePendingAdd (Object  targetChild)
           이 클래스의 서브 클래스는 이 메소드를 오버라이드(override) 또는 포괄해, BeanContext 에 추가되기 직전에, BeanContext 가 아이 객체를 조사하기 위한 검증 동작을 추가할 수 있습니다.
protected  boolean validatePendingRemove (Object  targetChild)
           이 클래스의 서브 클래스는 이 메소드를 오버라이드(override) 또는 포괄해, BeanContext 로부터 삭제되기 직전에, BeanContext 가 아이 객체를 조사하기 위한 검증 동작을 추가할 수 있습니다.
 void vetoableChange (PropertyChangeEvent  pce)
          서브 클래스는, 아이의 거부 프로퍼티의 변경을 감시하기 위해서 포괄하는 일이 있습니다.
 void writeChildren (ObjectOutputStream  oos)
          이 BeanContext 의 아이 모든 것을 직렬화하는데 사용됩니다.
 
클래스 java.beans.beancontext. BeanContextChildSupport 로부터 상속된 메소드
addPropertyChangeListener , addVetoableChangeListener , firePropertyChange , fireVetoableChange , getBeanContext , getBeanContextChildPeer , initializeBeanContextResources , isDelegated , releaseBeanContextResources , removePropertyChangeListener , removeVetoableChangeListener , serviceAvailable , serviceRevoked , setBeanContext , validatePendingSetBeanContext
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 
인터페이스 java.beans.beancontext. BeanContextChild 로부터 상속된 메소드
addPropertyChangeListener , addVetoableChangeListener , getBeanContext , removePropertyChangeListener , removeVetoableChangeListener , setBeanContext
 
인터페이스 java.util. Collection 로부터 상속된 메소드
equals , hashCode
 

필드의 상세

children

protected transient HashMap  children
protected HashMap children 필드에의 모든 액세스는, 그 객체에 동기화 됩니다.


bcmListeners

protected transient ArrayList  bcmListeners
protected ArrayList bcmListeners 필드에의 모든 액세스는, 그 객체에 동기화 됩니다.


locale

protected Locale  locale
BeanContext 의 현재의 로케일입니다.


okToUseGui

protected boolean okToUseGui
이 인스턴스가 GUI 를 draw 할 수 있을지 어떨지를 나타내는,boolean 입니다.


designTime

protected boolean designTime
이 객체가 현재, 설계시 모드인가 어떤가를 나타내는 boolean 입니다.

생성자 의 상세

BeanContextSupport

public BeanContextSupport(BeanContext  peer,
                          Locale  lcle,
                          boolean dTime,
                          boolean visible)
BeanContextSupport 의 인스턴스를 생성합니다.

파라미터:
peer - 구현을 제공하고 있다 피어 BeanContext, 또는 이 객체가 그것 자신의 피어인 경우는 null
lcle - 이 BeanContext 의 현재의 Localelclenull 의 경우, 디폴트의 로케일이 BeanContext 인스턴스에 할당할 수 있는
dTime - 초기 상태. 설계 모드의 경우는 true, 실행시 모드의 경우는 false
visible - 초기 상태에서의 가시성
관련 항목:
Locale.getDefault() , Locale.setDefault(java.util.Locale)

BeanContextSupport

public BeanContextSupport(BeanContext  peer,
                          Locale  lcle,
                          boolean dtime)
지정된 로케일을 사용해 설계 모드로 인스턴스를 생성합니다.

파라미터:
peer - 구현을 제공하고 있다 피어 BeanContext, 또는 이 객체가 그것 자신의 피어인 경우는 null
lcle - 이 BeanContext 의 현재의 Locale. lclenull 의 경우, 디폴트의 로케일이 BeanContext 인스턴스에 할당할 수 있는
dtime - 초기 상태. 설계 모드의 경우는 true, 실행시 모드의 경우는 false
관련 항목:
Locale.getDefault() , Locale.setDefault(java.util.Locale)

BeanContextSupport

public BeanContextSupport(BeanContext  peer,
                          Locale  lcle)
지정된 로케일을 사용해 인스턴스를 생성합니다.

파라미터:
peer - 구현을 제공하고 있다 피어 BeanContext, 이 객체가 그것 자신의 피어의 경우는 null
lcle - 이 BeanContext 의 현재의 로케일. lclenull 의 경우는, 디폴트의 로케일이 BeanContext 인스턴스에 할당할 수 있는
관련 항목:
Locale.getDefault() , Locale.setDefault(java.util.Locale)

BeanContextSupport

public BeanContextSupport(BeanContext  peer)
디폴트의 로케일을 사용해 인스턴스를 생성합니다.

파라미터:
peer - 구현을 제공하고 있다 피어 BeanContext, 이 객체가 그것 자신의 피어의 경우는 null

BeanContextSupport

public BeanContextSupport()
다른 객체의 위양이 아닌 인스턴스를 생성합니다.

메소드의 상세

getBeanContextPeer

public BeanContext  getBeanContextPeer()
이 객체가 구현을 제공하는 BeanContext 의 인스턴스를 가져옵니다.

반환값:
BeanContext 인스턴스

instantiateChild

public Object  instantiateChild(String  beanName)
                        throws IOException ,
                               ClassNotFoundException 

instantiateChild 메소드는, Bean 를 상자로 해 BeanContext 에 인스턴스를 생성하는 처리를 단순화 하는 BeanContext 의 간이 훅입니다.

beanName 파라미터의 시멘틱스는, java.beans.Beans.instantate 에 의해 정의됩니다.

정의:
인터페이스 BeanContext 내의 instantiateChild
파라미터:
beanName - 이 BeanContext 내에서 인스턴스를 생성하는 Bean 의 이름
반환값:
신규 객체
예외:
IOException - Bean 의 직렬화 복원중에 입출력 에러가 발생했을 경우
ClassNotFoundException - beanName 파라미터 에 의해 식별된 클래스가 발견되지 않는 경우

size

public int size()
이 BeanContext 로 상자가 된 현재의 아이의 개수를 가져옵니다.

정의:
인터페이스 Collection 내의 size
반환값:
자의 수

isEmpty

public boolean isEmpty()
BeanContext 가 빈 상태(empty)인가 어떤가를 보고합니다. 상자가 된 아이가 없는 경우,BeanContext 는 빈 상태(empty)로 간주해집니다.

정의:
인터페이스 Collection 내의 isEmpty
반환값:
자가 있는지 없는지

contains

public boolean contains(Object  o)
지정된 객체가 이 BeanContext 내에 있을지 어떨지를 판정합니다.

정의:
인터페이스 Collection 내의 contains
파라미터:
o - 해당하는 객체
반환값:
이 객체가 아이의 경우

containsKey

public boolean containsKey(Object  o)
지정된 객체가 이 BeanContext 내에 있을지 어떨지를 판정합니다.

파라미터:
o - 해당하는 객체
반환값:
이 객체가 아이의 경우

iterator

public Iterator  iterator()
BeanContext 로 상자가 된 JavaBean 또는 BeanContext 의 인스턴스를 가져옵니다.

정의:
인터페이스 Iterable 내의 iterator
정의:
인터페이스 Collection 내의 iterator
반환값:
상자가 된 아이의 Iterator

toArray

public Object [] toArray()
BeanContext 로 상자가 된 JavaBean 또는 BeanContext 의 인스턴스를 가져옵니다.

정의:
인터페이스 Collection 내의 toArray
반환값:
컬렉션의 모든 요소가 포함되고 있는 배열

toArray

public Object [] toArray(Object [] arry)
이 배열내에 있는 형태와 일치하는 BeanContext 의 모든 아이를 포함한 배열을 가져옵니다.

정의:
인터페이스 Collection 내의 toArray
파라미터:
arry - 대상이 된다 객체형의 배열
반환값:
자의 배열

createBCSChild

protected BeanContextSupport.BCSChild  createBCSChild(Object  targetChild,
                                                     Object  peer)

서브 클래스는 이 메소드를 오버라이드(override) 하는 것으로써, 세트에 아이를 추가하는 add() 메소드나 다른 Collection 메소드를 오버라이드(override) 하는 일 없이, Child 의 독자적인 서브 클래스를 삽입할 수가 있습니다.

파라미터:
targetChild - Child 를 작성하는 아이
peer - targetChild 및 피어를 BeanContextProxy 에 의해 관련지을 수 있고 있는 경우는 그 피어

add

public boolean add(Object  targetChild)
BeanContext 내에 아이를 추가, 즉 상자로 합니다.

java.beans.Beans.instantiate()의 부작용으로서 불려 갑니다. 아이 객체를 추가하는 처리가 정당하지 않은 경우, 이 메소드는 IllegalStateException 를 throw 합니다.

정의:
인터페이스 Collection 내의 add
파라미터:
targetChild - 이 BeanContext 내에서 상자가 되는 아이 객체
반환값:
자의 추가가 성공했을 경우는 true
관련 항목:
validatePendingAdd(java.lang.Object)

remove

public boolean remove(Object  targetChild)
이 BeanContext 로부터 아이를 삭제합니다. 아이 객체를 추가하는 처리가 정당하지 않은 경우, 이 메소드는 IllegalStateException 를 throw 합니다.

정의:
인터페이스 Collection 내의 remove
파라미터:
targetChild - 삭제되는 아이 객체
반환값:
이 호출의 결과, 요소가 삭제되었을 경우는 true
관련 항목:
validatePendingRemove(java.lang.Object)

remove

protected boolean remove(Object  targetChild,
                         boolean callChildSetBC)
예기치 않은 setBeanContext 혹은 remove() 호출로 삭제되는 경우, 내부 삭제가 사용됩니다.

파라미터:
targetChild - 삭제되는 JavaBean, BeanContext 및 Object
callChildSetBC - 자가 이 BeanContext 의 상자가 아니게 된 것을 통지해야 하는 것이라고 가리키기 위해서(때문에) 사용된다

containsAll

public boolean containsAll(Collection  c)
지정되고 있는 Collection 의 모든 객체가, 이 BeanContext 의 아이인가 어떤가를 판정합니다.

정의:
인터페이스 Collection 내의 containsAll
파라미터:
c - 지정되고 있는 Collection
반환값:
컬렉션의 모든 객체가, 이 BeanContext 의 아이의 경우는 true, 그렇지 않은 경우는 false
관련 항목:
Collection.contains(Object)

addAll

public boolean addAll(Collection  c)
Children 세트에 Collection 를 추가합니다 (지원되어 있지 않다). 구현에서는, 계층의 락 및 「아이」의 protected 필드에 도착해 동기를 잡을 필요가 있습니다.

정의:
인터페이스 Collection 내의 addAll
파라미터:
c - 컬렉션에 추가되는 요소를 포함한 컬렉션
반환값:
이 호출의 결과, 이 컬렉션이 변경되었을 경우는 true
예외:
UnsupportedOperationException
관련 항목:
Collection.add(Object)

removeAll

public boolean removeAll(Collection  c)
지정된 모든 아이를 삭제합니다 (지원되어 있지 않다). 구현에서는, 계층의 락 및 「아이」의 protected 필드에 도착해 동기를 잡을 필요가 있습니다.

정의:
인터페이스 Collection 내의 removeAll
파라미터:
c - 이 컬렉션으로부터 삭제되는 요소를 포함한 컬렉션
반환값:
이 호출의 결과, 이 컬렉션이 변경되었을 경우는 true
예외:
UnsupportedOperationException
관련 항목:
Collection.remove(Object) , Collection.contains(Object)

retainAll

public boolean retainAll(Collection  c)
지정된 아이만을 보관 유지합니다 (지원되어 있지 않다). 구현에서는, 계층의 락 및 「아이」의 protected 필드에 도착해 동기를 잡을 필요가 있습니다.

정의:
인터페이스 Collection 내의 retainAll
파라미터:
c - 이 컬렉션으로 보관 유지되는 요소를 포함한 컬렉션
반환값:
이 호출의 결과, 이 컬렉션이 변경되었을 경우는 true
예외:
UnsupportedOperationException
관련 항목:
Collection.remove(Object) , Collection.contains(Object)

clear

public void clear()
아이를 클리어 합니다 (지원되어 있지 않다). 구현에서는, 계층의 락 및 「아이」의 protected 필드에 도착해 동기를 잡을 필요가 있습니다.

정의:
인터페이스 Collection 내의 clear
예외:
UnsupportedOperationException

addBeanContextMembershipListener

public void addBeanContextMembershipListener(BeanContextMembershipListener  bcml)
BeanContextMembershipListener 를 추가합니다.

정의:
인터페이스 BeanContext 내의 addBeanContextMembershipListener
파라미터:
bcml - 추가되는 BeanContextMembershipListener
예외:
NullPointerException

removeBeanContextMembershipListener

public void removeBeanContextMembershipListener(BeanContextMembershipListener  bcml)
BeanContextMembershipListener 를 삭제합니다.

정의:
인터페이스 BeanContext 내의 removeBeanContextMembershipListener
파라미터:
bcml - 삭제하는 BeanContextMembershipListener
예외:
NullPointerException

getResourceAsStream

public InputStream  getResourceAsStream(String  name,
                                       BeanContextChild  bcc)
인터페이스 BeanContext 의 기술:
java.lang.ClassLoader.getResourceAsStream() 와 같이, 이 메소드에 의해 BeanContext 구현이 아이 Component 와 기본적인 ClassLoader 와의 사이에 동작을 삽입할 수가 있습니다.

정의:
인터페이스 BeanContext 내의 getResourceAsStream
파라미터:
name - 요구된 자원의 이름
bcc - 요구를 실시하는 아이 객체
반환값:
InputStream 로서 요구된 자원
예외:
NullPointerException

getResource

public URL  getResource(String  name,
                       BeanContextChild  bcc)
인터페이스 BeanContext 의 기술:
java.lang.ClassLoader.getResource() 와 같이, 이 메소드에 의해 BeanContext 구현이 아이 Component 와 기본적인 ClassLoader 와의 사이에 동작을 삽입할 수가 있습니다.

정의:
인터페이스 BeanContext 내의 getResource
파라미터:
name - 요구된 자원의 이름
bcc - 요구를 실시하는 아이 객체
반환값:
InputStream 로서 요구된 자원

setDesignTime

public void setDesignTime(boolean dTime)
BeanContext 에 새로운 설계시 모드를 설정합니다.

정의:
인터페이스 DesignMode 내의 setDesignTime
파라미터:
dTime - 신규 designTime 치
관련 항목:
BeanContext , BeanContextMembershipListener , PropertyChangeEvent

isDesignTime

public boolean isDesignTime()
이 객체가 현재, 설계시 모드인가 어떤가를 보고합니다.

정의:
인터페이스 DesignMode 내의 isDesignTime
반환값:
설계시 모드의 경우는 true, 그 이외의 경우는 false

setLocale

public void setLocale(Locale  newLocale)
               throws PropertyVetoException 
이 BeanContext 의 로케일을 설정합니다.

파라미터:
newLocale - 신규 로케일. newLocale 가 null 의 경우, 이 메소드 호출에 효과는 없다
예외:
PropertyVetoException - 신규 로케일이 거부되었을 경우

getLocale

public Locale  getLocale()
BeanContext 의 로케일을 가져옵니다.

반환값:
BeanContext 의 현재의 Locale

needsGui

public boolean needsGui()

일반적으로, 이 메소드는 구현측이 GUI 를 필요로 하고 있는지 어떤지를 판단하기 위해서(때문에), 환경으로부터 불려 갑니다.

여기서 사용되고 있는 알고리즘은 BeanContextPeer 와 현재의 아이가 자신을 Containers, Components 의 어느 쪽인지를 판단하는 것을 테스트합니다. Visibility 를 구현하고 있는 경우는, needsGui() == true 를 돌려줍니다.

정의:
인터페이스 Visibility 내의 needsGui
반환값:
구현측이 GUI 를 필요로 하는 경우는 true

dontUseGui

public void dontUseGui()
이 인스턴스에 GUI 를 draw 할 수 없는 것을 통지합니다.

정의:
인터페이스 Visibility 내의 dontUseGui

okToUseGui

public void okToUseGui()
이 인스턴스에 GUI 를 draw 할 수 있는 것을 통지합니다.

정의:
인터페이스 Visibility 내의 okToUseGui

avoidingGui

public boolean avoidingGui()
BeanContext 의 아이가 GUI 의 사용을 피할지 어떨지 판단하는데 사용됩니다.

정의:
인터페이스 Visibility 내의 avoidingGui
반환값:
이 인스턴스가 GUI 의 사용을 피할까
관련 항목:
Visibility

isSerializing

public boolean isSerializing()
BeanContext 는 직렬화의 처리중인가

반환값:
BeanContext 가 현재 직렬화 되고 있는 경우

bcsChildren

protected Iterator  bcsChildren()
BeanContext 의 아이 모든 반복자를 돌려줍니다.

반환값:
현재의 모든 BCSChild 치의 반복자

bcsPreSerializationHook

protected void bcsPreSerializationHook(ObjectOutputStream  oos)
                                throws IOException 
defaultWriteObject()의 뒤, 아이를 직렬화하기 전의 writeObject 에 의해 불려 갑니다. 슈퍼 클래스가 아이를 직렬화하기 전 상태를 커스텀 직렬화하는 서브 클래스를 사용해, 이 메소드를 오버라이드(override) 할 수 있습니다. 그러나, 이 메소드는, writeObject() (가 있는 경우)의 독자적인 구현을 치환하는 서브 클래스에서 사용할 수 없습니다.

예외:
IOException

bcsPreDeserializationHook

protected void bcsPreDeserializationHook(ObjectInputStream  ois)
                                  throws IOException ,
                                         ClassNotFoundException 
defaultWriteObject()의 뒤, 아이를 직렬화하기 전의 readObject 에 의해 불려 갑니다. 슈퍼 클래스가 아이를 직렬화하기 전 상태를 커스텀 직렬화 복원하는 서브 클래스를 사용해, 이 메소드를 오버라이드(override) 할 수 있습니다. 그러나, 이 메소드는, readObject() (가 있는 경우) 독자적인 구현을 치환하기 위해서, 서브 클래스에서 사용할 수 없습니다.

예외:
IOException
ClassNotFoundException

childDeserializedHook

protected void childDeserializedHook(Object  child,
                                     BeanContextSupport.BCSChild  bcsc)
새롭고 직렬화 복원된 아이 및 BCSChild 를 사용해 readObject 에 의해 불려 갑니다.

파라미터:
child - 새롭게 직렬화 복원된 아이
bcsc - 새롭게 직렬화 복원된 BCSChild

serialize

protected final void serialize(ObjectOutputStream  oos,
                               Collection  coll)
                        throws IOException 
컬렉션을 직렬화하기 위해서(때문에) writeObject 에 의해 사용됩니다.

파라미터:
oos - 직렬화중에 사용한다 ObjectOutputStream
coll - 직렬화하는 Collection
예외:
IOException - 직렬화에 실패했을 경우

deserialize

protected final void deserialize(ObjectInputStream  ois,
                                 Collection  coll)
                          throws IOException ,
                                 ClassNotFoundException 
컬렉션을 직렬화 복원하기 위해서(때문에) readObject 에 의해 사용됩니다.

파라미터:
ois - 사용하는 ObjectInputStream
coll - 컬렉션
예외:
IOException
ClassNotFoundException

writeChildren

public final void writeChildren(ObjectOutputStream  oos)
                         throws IOException 
BeanContext 의 아이 모든 것을 직렬화하는데 사용됩니다.

파라미터:
oos - 직렬화중에 사용한다 ObjectOutputStream
예외:
IOException - 직렬화에 실패했을 경우

readChildren

public final void readChildren(ObjectInputStream  ois)
                        throws IOException ,
                               ClassNotFoundException 
이 클래스의 인스턴스가 BeanContext 프로토콜 ( 및 그 서브 프로토콜)의 구현의 위양으로서 사용될 때는, 직렬화 복원 시에 「닭이 앞이나 알이 앞인가」의 문제가 일어납니다.

예외:
IOException
ClassNotFoundException

vetoableChange

public void vetoableChange(PropertyChangeEvent  pce)
                    throws PropertyVetoException 
서브 클래스는, 아이의 거부 프로퍼티의 변경을 감시하기 위해서 포괄하는 일이 있습니다.

정의:
인터페이스 VetoableChangeListener 내의 vetoableChange
파라미터:
pce - 이벤트 소스 및 변경한 프로퍼티을 기술한다 PropertyChangeEvent 객체
예외:
PropertyVetoException - 수취하는 측으로 프로퍼티 변경의 롤백(rollback)를 지정하고 있는 경우

propertyChange

public void propertyChange(PropertyChangeEvent  pce)
서브 클래스는, 아이의 프로퍼티의 변경을 감시하기 위해서 포괄하는 일이 있습니다.

정의:
인터페이스 PropertyChangeListener 내의 propertyChange
파라미터:
pce - 이벤트 소스 및 변경한 프로퍼티을 기술한다 PropertyChangeEvent 객체

validatePendingAdd

protected boolean validatePendingAdd(Object  targetChild)

이 클래스의 서브 클래스는 이 메소드를 오버라이드(override) 또는 포괄해, BeanContext 에 추가되기 직전에, BeanContext 가 아이 객체를 조사하기 위한 검증 동작을 추가할 수 있습니다.

반환값:
자가 이 BeanContext 에 추가되었을 경우는 true, 그렇지 않은 경우는 false

validatePendingRemove

protected boolean validatePendingRemove(Object  targetChild)

이 클래스의 서브 클래스는 이 메소드를 오버라이드(override) 또는 포괄해, BeanContext 로부터 삭제되기 직전에, BeanContext 가 아이 객체를 조사하기 위한 검증 동작을 추가할 수 있습니다.

반환값:
자가 이 BeanContext 로부터 삭제되는 경우는 true, 그렇지 않은 경우는 false

childJustAddedHook

protected void childJustAddedHook(Object  child,
                                  BeanContextSupport.BCSChild  bcsc)
서브 클래스는 이 메소드를 오버라이드(override) 해, 아이가 추가되어, 이벤트 통지가 발생하기 전에, 간단하게 add() 시멘틱스를 확장할 수 있습니다. 이 메소드는 동기화 되고 있는 아이를 사용해 불려 갑니다.


childJustRemovedHook

protected void childJustRemovedHook(Object  child,
                                    BeanContextSupport.BCSChild  bcsc)
서브 클래스는 이 메소드를 오버라이드(override) 해, 아이가 삭제되어, 이벤트 통지가 발생하기 전에, 간단하게 remove() 시멘틱스를 확장할 수 있습니다. 이 메소드는 동기화 되고 있는 아이를 사용해 불려 갑니다.


getChildVisibility

protected static final Visibility  getChildVisibility(Object  child)
지정된 아이에게 관련한 Component (존재하는 경우)를 가져옵니다.

파라미터:
child - 지정된 아이
반환값:
지정된 아이에게 관련한 Component (존재하는 경우)

getChildSerializable

protected static final Serializable  getChildSerializable(Object  child)
지정된 Child 에 관련한 Serializable (존재하는 경우)를 가져옵니다.

파라미터:
child - 지정된 아이
반환값:
지정된 Child 에 관련한 Serializable (존재하는 경우)

getChildPropertyChangeListener

protected static final PropertyChangeListener  getChildPropertyChangeListener(Object  child)
지정된 아이의 PropertyChangeListener (존재하는 경우)를 가져옵니다.

파라미터:
child - 지정된 아이
반환값:
지정된 아이의 PropertyChangeListener (존재하는 경우)

getChildVetoableChangeListener

protected static final VetoableChangeListener  getChildVetoableChangeListener(Object  child)
지정된 아이의 VetoableChangeListener (존재하는 경우)를 가져옵니다.

파라미터:
child - 지정된 아이
반환값:
지정된 아이의 VetoableChangeListener (존재하는 경우)

getChildBeanContextMembershipListener

protected static final BeanContextMembershipListener  getChildBeanContextMembershipListener(Object  child)
지정된 아이의 BeanContextMembershipListener (존재하는 경우)를 가져옵니다.

파라미터:
child - 지정된 아이
반환값:
지정된 아이의 BeanContextMembershipListener (존재하는 경우)

getChildBeanContextChild

protected static final BeanContextChild  getChildBeanContextChild(Object  child)
지정된 아이의 BeanContextChild (존재하는 경우)를 가져옵니다.

파라미터:
child - 지정된 아이
반환값:
지정된 아이의 BeanContextChild (존재하는 경우)
예외:
IllegalArgumentException - 자가 BeanContextChild 및 BeanContextProxy 의 양쪽 모두를 구현하고 있는 경우

fireChildrenAdded

protected final void fireChildrenAdded(BeanContextMembershipEvent  bcme)
BeanContextMembershipListener 인터페이스의 BeanContextshipEvent 를 트리거합니다.


fireChildrenRemoved

protected final void fireChildrenRemoved(BeanContextMembershipEvent  bcme)
BeanContextMembershipListener 인터페이스의 BeanContextshipEvent 를 트리거합니다.


initialize

protected void initialize()
BeanContextSupport 인스턴스의 과도 상태를 초기화하기 위해서, 생성자 및 readObject 로부터 불려 가는 protected 메소드입니다. 이 클래스에서는 이 메소드를 사용해, 아이의 PropertyChange 및 VetoableChange 이벤트를 모니터 하는 내부 클래스 청취자를 초기화합니다. 서브 클래스는, 이 메소드를 포괄하는 것으로 독자적인 초기 동작을 추가할 수 있습니다.


copyChildren

protected final Object [] copyChildren()
이 BeanContext 의 아이의 카피를 가져옵니다.

반환값:
현재의 상자가 된 아이의 카피

classEquals

protected static final boolean classEquals(Class  first,
                                           Class  second)
2 개의 클래스 객체 또는 그러한 이름이 같은가 어떤가를 판정합니다.

파라미터:
first - 최초의 객체
second - 2 번째의 객체
반환값:
같은 경우는 true, 그렇지 않은 경우는 false

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.