|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jst.jsf.core.internal.provisional.jsfappconfig.AbstractJSFAppConfigLocater
Abstract implementation of IJSFAppConfigLocater
that provides common
locater functionality. IJSFAppConfigLocater
implementations should
extend this class or provide similar functionality.
Field Summary | |
protected java.util.Set |
configProviders
Set of known IJSFAppConfigProvider instances. |
protected JSFAppConfigManager |
manager
JSFAppConfigManager instance to which this locater belongs. |
Constructor Summary | |
AbstractJSFAppConfigLocater()
|
Method Summary | |
protected boolean |
addConfigProvider(IJSFAppConfigProvider configProvider)
Adds an IJSFAppConfigProvider instance to the set of known
instances and notifies JSFAppConfigManager instance of the
addition if successful. |
protected void |
finalize()
|
JSFAppConfigManager |
getJSFAppConfigManager()
Gets the JSFAppConfigManager instance to which this locater
belongs. |
java.util.Set |
getJSFAppConfigProviders()
Gets the set of IJSFAppConfigProvider instances that this
locater has located. |
protected void |
removeAllConfigProviders()
Removes all IJSFAppConfigProvider instances from the known set,
sending notification of all removals to the JSFAppConfigManager
instance. |
protected boolean |
removeConfigProvider(IJSFAppConfigProvider configProvider)
Removes an IJSFAppConfigProvider instance from the set of known
instances and notifies JSFAppConfigManager instance of the
removal if successful. |
void |
setJSFAppConfigManager(JSFAppConfigManager manager)
Sets the JSFAppConfigManager instance to which this locater
belongs. |
abstract void |
startLocating()
Starts locating JSF application configuration resources. |
abstract void |
stopLocating()
Stops locating JSF application configuration resources. |
protected void |
updateConfigProviders(java.util.Set newConfigProviders)
Updates known set of IJSFAppConfigProvider instances by removing
instances that are in the existing set but not in the passed set and
adding instances that are in the passed set but not in the existing set. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JSFAppConfigManager manager
JSFAppConfigManager
instance to which this locater belongs.
protected java.util.Set configProviders
IJSFAppConfigProvider
instances.
Constructor Detail |
public AbstractJSFAppConfigLocater()
Method Detail |
public void setJSFAppConfigManager(JSFAppConfigManager manager)
IJSFAppConfigLocater
JSFAppConfigManager
instance to which this locater
belongs.
setJSFAppConfigManager
in interface IJSFAppConfigLocater
manager
- JSFAppConfigManager
instance to be set.public JSFAppConfigManager getJSFAppConfigManager()
IJSFAppConfigLocater
JSFAppConfigManager
instance to which this locater
belongs.
getJSFAppConfigManager
in interface IJSFAppConfigLocater
JSFAppConfigManager
instance to which this locater
belongs.public abstract void startLocating()
IJSFAppConfigLocater
startLocating
in interface IJSFAppConfigLocater
public abstract void stopLocating()
IJSFAppConfigLocater
stopLocating
in interface IJSFAppConfigLocater
public java.util.Set getJSFAppConfigProviders()
IJSFAppConfigLocater
IJSFAppConfigProvider
instances that this
locater has located.
getJSFAppConfigProviders
in interface IJSFAppConfigLocater
IJSFAppConfigProvider
instances.protected boolean addConfigProvider(IJSFAppConfigProvider configProvider)
IJSFAppConfigProvider
instance to the set of known
instances and notifies JSFAppConfigManager
instance of the
addition if successful.
configProvider
- IJSFAppConfigProvider
instance to be
added.
protected boolean removeConfigProvider(IJSFAppConfigProvider configProvider)
IJSFAppConfigProvider
instance from the set of known
instances and notifies JSFAppConfigManager
instance of the
removal if successful.
configProvider
- IJSFAppConfigProvider
instance to be
removed.
protected void updateConfigProviders(java.util.Set newConfigProviders)
IJSFAppConfigProvider
instances by removing
instances that are in the existing set but not in the passed set and
adding instances that are in the passed set but not in the existing set.
Instances that are in both the existing set and the passed set are left
unchanged. The JSFAppConfigManager
is notified of removals and
additions, and no notification is sent for instances that are left
unchanged.
newConfigProviders
- New set of IJSFAppConfigProvider
instances.protected void removeAllConfigProviders()
IJSFAppConfigProvider
instances from the known set,
sending notification of all removals to the JSFAppConfigManager
instance.
protected void finalize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |