|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Object java.beans.beancontext.BeanContextChildSupport java.beans.beancontext.BeanContextSupport java.beans.beancontext.BeanContextServicesSupport
public class BeanContextServicesSupport
이 헬퍼 클래스는, java.beans.beancontext.BeanContextServices 인터페이스의 유틸리티의 구현을 제공합니다.
이 클래스는, BeanContextServices 인터페이스를 직접 구현하기 위해(때문에), 이 구현을 서브 클래스화하는 것에 의해, 혹은 BeanContextProxy 인터페이스를 개입시켜 다른 인스턴스로부터 이 클래스의 인스턴스를 위양 하는 것에 의해 사용하는 것을 목적으로 하고 있습니다.
상자의 클래스의 개요 | |
---|---|
protected class |
BeanContextServicesSupport.BCSSChild
|
protected class |
BeanContextServicesSupport.BCSSProxyServiceProvider
|
protected static class |
BeanContextServicesSupport.BCSSServiceProvider
서브 클래스는, 이 상자 구조의 클래스를 서브 클래스화해, 각 BeanContextServicesProvider 의 동작을 추가할 수 있습니다. |
클래스 java.beans.beancontext. BeanContextSupport 로부터 상속된 상자의 클래스/인터페이스 |
---|
BeanContextSupport.BCSChild , BeanContextSupport.BCSIterator |
필드의 개요 | |
---|---|
protected ArrayList |
bcsListeners
BeanContextServicesListener 객체의 리스트입니다. |
protected BeanContextServicesSupport.BCSSProxyServiceProvider |
proxy
BeanContextServiceProvider 의 위양입니다. |
protected int |
serializable
직렬화 가능한 BeanContextServceProvider 의 인스턴스의 수입니다. |
protected HashMap |
services
protected transient HashMap services 필드에의 모든 액세스는, 그 객체에 동기화 됩니다. |
클래스 java.beans.beancontext. BeanContextSupport 로부터 상속된 필드 |
---|
bcmListeners , children , designTime , locale , okToUseGui |
클래스 java.beans.beancontext. BeanContextChildSupport 로부터 상속된 필드 |
---|
beanContext , beanContextChildPeer , pcSupport , rejectedSetBCOnce , vcSupport |
인터페이스 java.beans.beancontext. BeanContext 로부터 상속된 필드 |
---|
globalHierarchyLock |
인터페이스 java.beans. DesignMode 로부터 상속된 필드 |
---|
PROPERTYNAME |
생성자 의 개요 | |
---|---|
BeanContextServicesSupport ()
다른 객체의 위양이 아닌 인스턴스를 생성합니다. |
|
BeanContextServicesSupport (BeanContextServices peer)
피어를 사용해 인스턴스를 생성합니다. |
|
BeanContextServicesSupport (BeanContextServices peer,
Locale lcle)
지정된 로케일을 사용해 인스턴스를 생성합니다. |
|
BeanContextServicesSupport (BeanContextServices peer,
Locale lcle,
boolean dtime)
지정된 로케일을 사용해 설계 모드로 인스턴스를 생성합니다. |
|
BeanContextServicesSupport (BeanContextServices peer,
Locale lcle,
boolean dTime,
boolean visible)
BeanContextServicesSupport 의 인스턴스를 생성합니다. |
메소드의 개요 | |
---|---|
void |
addBeanContextServicesListener (BeanContextServicesListener bcsl)
BeanContextServicesListener 를 추가합니다. |
boolean |
addService (Class serviceClass,
BeanContextServiceProvider bcsp)
서비스를 추가합니다. |
protected boolean |
addService (Class serviceClass,
BeanContextServiceProvider bcsp,
boolean fireEvent)
서비스를 추가합니다. |
protected void |
bcsPreDeserializationHook (ObjectInputStream ois)
BeanContextSupport readObject 가 아이를 직렬화하기 전에, BeanContextSupport readObject 에 의해 불려 갑니다. |
protected void |
bcsPreSerializationHook (ObjectOutputStream oos)
BeanContextSupport writeObject 가 아이를 직렬화하기 전에, BeanContextSupport writeObject 에 의해 불려 갑니다. |
protected void |
childJustRemovedHook (Object child,
BeanContextSupport.BCSChild bcsc)
아이가 정상적으로 삭제된 후에, 슈퍼 클래스의 아이 삭제 조작으로부터 불려 갑니다. |
protected BeanContextSupport.BCSChild |
createBCSChild (Object targetChild,
Object peer)
서브 클래스는 이 메소드를 오버라이드(override) 하는 것으로써, 세트에 아이를 추가하는 add() 메소드나 다른 Collection 메소드를 오버라이드(override) 하는 일 없이, Child 의 독자적인 서브 클래스를 삽입할 수가 있습니다. |
protected BeanContextServicesSupport.BCSSServiceProvider |
createBCSSServiceProvider (Class sc,
BeanContextServiceProvider bcsp)
서브 클래스는 이 메소드를 오버라이드(override) 하는 것으로써, 인스턴스 생성을 위해서(때문에) addService()를 오버라이드(override) 하는 일 없이, BCSSServiceProvider 의 새로운 서브 클래스를 생성할 수가 있습니다. |
protected void |
fireServiceAdded (BeanContextServiceAvailableEvent bcssae)
새로운 서비스가 사용 가능하게 된 것을 나타내는 BeanContextServiceAvailableEvent 를 트리거합니다. |
protected void |
fireServiceAdded (Class serviceClass)
새로운 서비스를 통지하는 BeanContextServiceEvent 를 트리거합니다. |
protected void |
fireServiceRevoked (BeanContextServiceRevokedEvent bcsre)
서비스의 취소를 통지하는 BeanContextServiceEvent 를 트리거합니다. |
protected void |
fireServiceRevoked (Class serviceClass,
boolean revokeNow)
특정의 서비스가 사용 불가가 된 것을 통지하는 BeanContextServiceRevokedEvent 를 트리거합니다. |
BeanContextServices |
getBeanContextServicesPeer ()
이 BeanContextServicesSupport 에 관련한 BeanContextServices 를 가져옵니다. |
protected static BeanContextServicesListener |
getChildBeanContextServicesListener (Object child)
지정된 아이의 BeanContextServicesListener (존재하는 경우)를 가져옵니다. |
Iterator |
getCurrentServiceClasses ()
이 문맥에 현재 사용 가능한 서비스를 가져옵니다. |
Iterator |
getCurrentServiceSelectors (Class serviceClass)
기본적인 BeanContextServiceProvider 의 getCurrentServiceSelectors()를 호출하는 것에 의해, 지정된 서비스의 서비스 의존 서비스 파라미터 (Service Selectors)의 리스트를 가져옵니다. |
Object |
getService (BeanContextChild child,
Object requestor,
Class serviceClass,
Object serviceSelector,
BeanContextServiceRevokedListener bcsrl)
서비스를 가져옵니다. |
boolean |
hasService (Class serviceClass)
서비스를 가집니다. |
void |
initialize ()
서브 클래스의 일시적인 상태를 초기화하기 위해서, 작성시 및 직렬화 복원시에 BeanContextSupport 의 슈퍼 클래스에 의해 불려 갑니다. |
protected void |
initializeBeanContextResources ()
상자가 되어 있는 BeanContext 로부터 취득한 자원을 할당하도록(듯이) BeanContextChild 에 통지하기 위해서, setBeanContext 로부터 불려 갑니다. |
protected void |
releaseBeanContextResources ()
상자가 되어 있는 BeanContext 로부터 취득한 자원을 해제하도록(듯이) BeanContextChild 에 통지하기 위해서, setBeanContext 로부터 불려 갑니다. |
void |
releaseService (BeanContextChild child,
Object requestor,
Object service)
서비스를 해제합니다. |
void |
removeBeanContextServicesListener (BeanContextServicesListener bcsl)
BeanContextServicesListener 를 삭제합니다. |
void |
revokeService (Class serviceClass,
BeanContextServiceProvider bcsp,
boolean revokeCurrentServicesNow)
서비스를 삭제합니다. |
void |
serviceAvailable (BeanContextServiceAvailableEvent bcssae)
BeanContextServicesListener 의 콜백입니다. |
void |
serviceRevoked (BeanContextServiceRevokedEvent bcssre)
BeanContextServicesListener 의 콜백입니다. |
클래스 java.beans.beancontext. BeanContextSupport 로부터 상속된 메소드 |
---|
add , addAll , addBeanContextMembershipListener , avoidingGui , bcsChildren , childDeserializedHook , childJustAddedHook , classEquals , clear , contains , containsAll , containsKey , copyChildren , deserialize , dontUseGui , fireChildrenAdded , fireChildrenRemoved , getBeanContextPeer , getChildBeanContextChild , getChildBeanContextMembershipListener , getChildPropertyChangeListener , getChildSerializable , getChildVetoableChangeListener , getChildVisibility , getLocale , getResource , getResourceAsStream , instantiateChild , isDesignTime , isEmpty , isSerializing , iterator , needsGui , okToUseGui , propertyChange , readChildren , remove , remove , removeAll , removeBeanContextMembershipListener , retainAll , serialize , setDesignTime , setLocale , size , toArray , toArray , validatePendingAdd , validatePendingRemove , vetoableChange , writeChildren |
클래스 java.beans.beancontext. BeanContextChildSupport 로부터 상속된 메소드 |
---|
addPropertyChangeListener , addVetoableChangeListener , firePropertyChange , fireVetoableChange , getBeanContext , getBeanContextChildPeer , isDelegated , removePropertyChangeListener , removeVetoableChangeListener , setBeanContext , validatePendingSetBeanContext |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
인터페이스 java.beans.beancontext. BeanContext 로부터 상속된 메소드 |
---|
addBeanContextMembershipListener , getResource , getResourceAsStream , instantiateChild , removeBeanContextMembershipListener |
인터페이스 java.beans.beancontext. BeanContextChild 로부터 상속된 메소드 |
---|
addPropertyChangeListener , addVetoableChangeListener , getBeanContext , removePropertyChangeListener , removeVetoableChangeListener , setBeanContext |
인터페이스 java.util. Collection 로부터 상속된 메소드 |
---|
add , addAll , clear , contains , containsAll , equals , hashCode , isEmpty , iterator , remove , removeAll , retainAll , size , toArray , toArray |
인터페이스 java.beans. DesignMode 로부터 상속된 메소드 |
---|
isDesignTime , setDesignTime |
인터페이스 java.beans. Visibility 로부터 상속된 메소드 |
---|
avoidingGui , dontUseGui , needsGui , okToUseGui |
필드의 상세 |
---|
protected transient HashMap services
protected transient HashMap services
필드에의 모든 액세스는, 그 객체에 동기화 됩니다.
protected transient int serializable
protected transient BeanContextServicesSupport.BCSSProxyServiceProvider proxy
protected transient ArrayList bcsListeners
생성자 의 상세 |
---|
public BeanContextServicesSupport(BeanContextServices peer, Locale lcle, boolean dTime, boolean visible)
BeanContextServicesSupport 의 인스턴스를 생성합니다.
peer
- 구현의 제공처가 되는 피어 BeanContext. 이 객체가 자신의 피어인 경우는 nulllcle
- 이 BeanContext 의 현재의 Localedtime
- 초기 상태. 설계 모드의 경우는 true, 실행시 모드의 경우는 falsevisible
- 초기 상태에서의 가시성public BeanContextServicesSupport(BeanContextServices peer, Locale lcle, boolean dtime)
peer
- 구현의 제공처가 되는 피어 BeanContext. 이 객체가 자신의 피어인 경우는 nulllcle
- 이 BeanContext 의 현재의 Localedtime
- 초기 상태. 설계 모드의 경우는 true, 실행시 모드의 경우는 falsepublic BeanContextServicesSupport(BeanContextServices peer, Locale lcle)
peer
- 구현의 제공처가 되는 피어 BeanContext. 이 객체가 자신의 피어인 경우는 nulllcle
- 이 BeanContext 의 현재의 Localepublic BeanContextServicesSupport(BeanContextServices peer)
peer
- 구현의 제공처가 되는 피어 BeanContext. 이 객체가 자신의 피어인 경우는 nullpublic BeanContextServicesSupport()
메소드의 상세 |
---|
public void initialize()
BeanContextSupport
내의 initialize
public BeanContextServices getBeanContextServicesPeer()
protected BeanContextSupport.BCSChild createBCSChild(Object targetChild, Object peer)
서브 클래스는 이 메소드를 오버라이드(override) 하는 것으로써, 세트에 아이를 추가하는 add() 메소드나 다른 Collection 메소드를 오버라이드(override) 하는 일 없이, Child 의 독자적인 서브 클래스를 삽입할 수가 있습니다.
BeanContextSupport
내의 createBCSChild
targetChild
- Child 를 작성하는 아이peer
- targetChild 와 피어를 BeanContextProxy 에 의해 관련지을 수 있고 있는 경우는 그 피어protected BeanContextServicesSupport.BCSSServiceProvider createBCSSServiceProvider(Class sc, BeanContextServiceProvider bcsp)
public void addBeanContextServicesListener(BeanContextServicesListener bcsl)
BeanContextServices
내의 addBeanContextServicesListener
bcsl
- 추가하는 BeanContextServicesListener
public void removeBeanContextServicesListener(BeanContextServicesListener bcsl)
BeanContextServices
내의 removeBeanContextServicesListener
bcsl
- 이 문맥으로부터 삭제한다
BeanContextServicesListener
public boolean addService(Class serviceClass, BeanContextServiceProvider bcsp)
BeanContextServices
내의 addService
serviceClass
- 추가하는 서비스bcsp
- 서비스에 관련했다
BeanContextServiceProvider
protected boolean addService(Class serviceClass, BeanContextServiceProvider bcsp, boolean fireEvent)
public void revokeService(Class serviceClass, BeanContextServiceProvider bcsp, boolean revokeCurrentServicesNow)
BeanContextServices
내의 revokeService
serviceClass
- 이 BeanContextServices 로부터 호출하는 서비스bcsp
- 무효가 되는 이 특정의 서비스에 관련했다
BeanContextServiceProviderrevokeCurrentServicesNow
- true
의 값은,
BeanContextServiceProvider
또는
BeanContextServices
가,
지정된 서비스에의 현재 미처리의 참조 모두에 대해서
서비스를 즉시 종료하려고 하고 있다
예외 상황을 나타낸다public boolean hasService(Class serviceClass)
BeanContextServices
내의 hasService
serviceClass
- 해당하는 서비스
public Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
BeanContextServices
내의 getService
child
- 이 요구에 관련지을 수 있었다
BeanContextChild
requestor
- 서비스를 요구하는 객체serviceClass
- 요구된 서비스의 클래스serviceSelector
- 서비스 의존 파라미터bcsrl
- 서비스를
나중에 무효로 할 필요가 있는 경우에 통지한다
BeanContextServiceRevokedListener
null
TooManyListenersException
public void releaseService(BeanContextChild child, Object requestor, Object service)
BeanContextServices
내의 releaseService
child
- BeanContextChild
requestor
- 요구자service
- 서비스public Iterator getCurrentServiceClasses()
BeanContextServices
의 기술:
BeanContextServices
내의 getCurrentServiceClasses
public Iterator getCurrentServiceSelectors(Class serviceClass)
BeanContextServices
의 기술:
BeanContextServices
내의 getCurrentServiceSelectors
serviceClass
- 지정된 서비스
public void serviceAvailable(BeanContextServiceAvailableEvent bcssae)
BeanContextServicesListener
내의 serviceAvailable
BeanContextChildSupport
내의 serviceAvailable
bcssae
- 서비스가 사용 가능하게 되었기 때문에 트리거되었다
BeanContextServiceAvailableEventpublic void serviceRevoked(BeanContextServiceRevokedEvent bcssre)
BeanContextServiceRevokedListener
내의 serviceRevoked
BeanContextChildSupport
내의 serviceRevoked
bcssre
- 서비스의 취소에 의해 트리거되었다
BeanContextServiceRevokedEvent
protected static final BeanContextServicesListener getChildBeanContextServicesListener(Object child)
child
- 지정된 아이
protected void childJustRemovedHook(Object child, BeanContextSupport.BCSChild bcsc)
BeanContextSupport
내의 childJustRemovedHook
protected void releaseBeanContextResources()
BeanContextChildSupport
내의 releaseBeanContextResources
protected void initializeBeanContextResources()
BeanContextChildSupport
내의 initializeBeanContextResources
protected final void fireServiceAdded(Class serviceClass)
protected final void fireServiceAdded(BeanContextServiceAvailableEvent bcssae)
bcssae
- BeanContextServiceAvailableEventprotected final void fireServiceRevoked(BeanContextServiceRevokedEvent bcsre)
bcsre
- BeanContextServiceRevokedEventprotected final void fireServiceRevoked(Class serviceClass, boolean revokeNow)
protected void bcsPreSerializationHook(ObjectOutputStream oos) throws IOException
BeanContextSupport
내의 bcsPreSerializationHook
IOException
protected void bcsPreDeserializationHook(ObjectInputStream ois) throws IOException , ClassNotFoundException
BeanContextSupport
내의 bcsPreDeserializationHook
IOException
ClassNotFoundException
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.