BeanContext.java, [...]: Removed redundant modifiers.
2003-10-11 Michael Koch <konqueror@gmx.de> * java/beans/beancontext/BeanContext.java, java/beans/beancontext/BeanContextChild.java, java/beans/beancontext/BeanContextChildComponentProxy.java, java/beans/beancontext/BeanContextChildSupport.java, java/beans/beancontext/BeanContextContainerProxy.java, java/beans/beancontext/BeanContextMembershipListener.java, java/beans/beancontext/BeanContextProxy.java, java/beans/beancontext/BeanContextServiceProvider.java, java/beans/beancontext/BeanContextServiceProviderBeanInfo.java, java/beans/beancontext/BeanContextServiceRevokedListener.java, java/beans/beancontext/BeanContextServices.java, java/beans/beancontext/BeanContextServicesListener.java: Removed redundant modifiers. From-SVN: r72350
This commit is contained in:
parent
928366f04f
commit
c7bcb09dcc
@ -1,3 +1,19 @@
|
|||||||
|
2003-10-11 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
|
* java/beans/beancontext/BeanContext.java,
|
||||||
|
java/beans/beancontext/BeanContextChild.java,
|
||||||
|
java/beans/beancontext/BeanContextChildComponentProxy.java,
|
||||||
|
java/beans/beancontext/BeanContextChildSupport.java,
|
||||||
|
java/beans/beancontext/BeanContextContainerProxy.java,
|
||||||
|
java/beans/beancontext/BeanContextMembershipListener.java,
|
||||||
|
java/beans/beancontext/BeanContextProxy.java,
|
||||||
|
java/beans/beancontext/BeanContextServiceProvider.java,
|
||||||
|
java/beans/beancontext/BeanContextServiceProviderBeanInfo.java,
|
||||||
|
java/beans/beancontext/BeanContextServiceRevokedListener.java,
|
||||||
|
java/beans/beancontext/BeanContextServices.java,
|
||||||
|
java/beans/beancontext/BeanContextServicesListener.java:
|
||||||
|
Removed redundant modifiers.
|
||||||
|
|
||||||
2003-10-11 Michael Koch <konqueror@gmx.de>
|
2003-10-11 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* java/beans/AppletInitializer.java,
|
* java/beans/AppletInitializer.java,
|
||||||
|
@ -183,7 +183,7 @@ public interface BeanContext
|
|||||||
* </UL>
|
* </UL>
|
||||||
* @fixme fill in the rest of the methods which use the global lock.
|
* @fixme fill in the rest of the methods which use the global lock.
|
||||||
*/
|
*/
|
||||||
public static final Object globalHierarchyLock = new Object();
|
Object globalHierarchyLock = new Object();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiate a Bean using this Bean's <code>ClassLoader</code>
|
* Instantiate a Bean using this Bean's <code>ClassLoader</code>
|
||||||
@ -204,7 +204,7 @@ public interface BeanContext
|
|||||||
* @exception ClassNotFoundException if a serialized Bean's class
|
* @exception ClassNotFoundException if a serialized Bean's class
|
||||||
* is not found.
|
* is not found.
|
||||||
*/
|
*/
|
||||||
public Object instantiateChild(String beanName)
|
Object instantiateChild(String beanName)
|
||||||
throws IOException,
|
throws IOException,
|
||||||
ClassNotFoundException;
|
ClassNotFoundException;
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ public interface BeanContext
|
|||||||
* @param requestor a reference to the child requesting the resource.
|
* @param requestor a reference to the child requesting the resource.
|
||||||
* @see java.lang.ClassLoader#getResource(java.lang.String)
|
* @see java.lang.ClassLoader#getResource(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public URL getResource(String resourceName, BeanContextChild requestor);
|
URL getResource(String resourceName, BeanContextChild requestor);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a resource as a stream. The <code>BeanContext</code> will
|
* Get a resource as a stream. The <code>BeanContext</code> will
|
||||||
@ -254,19 +254,19 @@ public interface BeanContext
|
|||||||
* @param requestor a reference to the child requesting the resource.
|
* @param requestor a reference to the child requesting the resource.
|
||||||
* @see java.lang.ClassLoader#getResourceAsStream(java.lang.String)
|
* @see java.lang.ClassLoader#getResourceAsStream(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public InputStream getResourceAsStream(String resourceName, BeanContextChild requestor);
|
InputStream getResourceAsStream(String resourceName, BeanContextChild requestor);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a listener on changes to the membership of this
|
* Add a listener on changes to the membership of this
|
||||||
* <code>BeanContext</code> object.
|
* <code>BeanContext</code> object.
|
||||||
* @param listener the listener to add.
|
* @param listener the listener to add.
|
||||||
*/
|
*/
|
||||||
public void addBeanContextMembershipListener(BeanContextMembershipListener listener);
|
void addBeanContextMembershipListener(BeanContextMembershipListener listener);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a listener on changes to the membership of this
|
* Remove a listener on changes to the membership of this
|
||||||
* <code>BeanContext</code> object.
|
* <code>BeanContext</code> object.
|
||||||
* @param listener the listener to remove.
|
* @param listener the listener to remove.
|
||||||
*/
|
*/
|
||||||
public void removeBeanContextMembershipListener(BeanContextMembershipListener listener);
|
void removeBeanContextMembershipListener(BeanContextMembershipListener listener);
|
||||||
}
|
}
|
||||||
|
@ -132,28 +132,28 @@ public interface BeanContextChild {
|
|||||||
* <code>BeanContextChild</code> implementor does not
|
* <code>BeanContextChild</code> implementor does not
|
||||||
* wish to have its parent changed.
|
* wish to have its parent changed.
|
||||||
*/
|
*/
|
||||||
public void setBeanContext(BeanContext parent)
|
void setBeanContext(BeanContext parent)
|
||||||
throws PropertyVetoException;
|
throws PropertyVetoException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the parent <code>BeanContext</code>.
|
* Get the parent <code>BeanContext</code>.
|
||||||
* @return the parent <code>BeanContext</code>.
|
* @return the parent <code>BeanContext</code>.
|
||||||
*/
|
*/
|
||||||
public BeanContext getBeanContext();
|
BeanContext getBeanContext();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a listener that will be notified when a specific property changes.
|
* Add a listener that will be notified when a specific property changes.
|
||||||
* @param prop the name of the property to listen on
|
* @param prop the name of the property to listen on
|
||||||
* @param listener the listener to listen on the property.
|
* @param listener the listener to listen on the property.
|
||||||
*/
|
*/
|
||||||
public void addPropertyChangeListener(String prop, PropertyChangeListener listener);
|
void addPropertyChangeListener(String prop, PropertyChangeListener listener);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a listener to a certain property.
|
* Remove a listener to a certain property.
|
||||||
* @param prop the name of the property being listened on
|
* @param prop the name of the property being listened on
|
||||||
* @param listener the listener listening on the property.
|
* @param listener the listener listening on the property.
|
||||||
*/
|
*/
|
||||||
public void removePropertyChangeListener(String prop, PropertyChangeListener listener);
|
void removePropertyChangeListener(String prop, PropertyChangeListener listener);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a listener that will be notified when a specific property
|
* Add a listener that will be notified when a specific property
|
||||||
@ -163,12 +163,12 @@ public interface BeanContextChild {
|
|||||||
* @param prop the name of the property to listen on
|
* @param prop the name of the property to listen on
|
||||||
* @param listener the listener to listen on the property.
|
* @param listener the listener to listen on the property.
|
||||||
*/
|
*/
|
||||||
public void addVetoableChangeListener(String prop, VetoableChangeListener listener);
|
void addVetoableChangeListener(String prop, VetoableChangeListener listener);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a listener to a certain property.
|
* Remove a listener to a certain property.
|
||||||
* @param prop the name of the property being listened on
|
* @param prop the name of the property being listened on
|
||||||
* @param listener the listener listening on the property.
|
* @param listener the listener listening on the property.
|
||||||
*/
|
*/
|
||||||
public void removeVetoableChangeListener(String prop, VetoableChangeListener listener);
|
void removeVetoableChangeListener(String prop, VetoableChangeListener listener);
|
||||||
}
|
}
|
||||||
|
@ -56,5 +56,5 @@ public interface BeanContextChildComponentProxy {
|
|||||||
* @return the <code>Component</code> associated with this
|
* @return the <code>Component</code> associated with this
|
||||||
* <code>BeanContextChild</code>.
|
* <code>BeanContextChild</code>.
|
||||||
*/
|
*/
|
||||||
public Component getComponent();
|
Component getComponent();
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ public class BeanContextChildSupport
|
|||||||
public BeanContextChildSupport()
|
public BeanContextChildSupport()
|
||||||
{
|
{
|
||||||
this (null);
|
this (null);
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new <code>BeanContextChildSupport</code> with the specified peer.
|
* Create a new <code>BeanContextChildSupport</code> with the specified peer.
|
||||||
|
@ -59,5 +59,5 @@ public interface BeanContextContainerProxy {
|
|||||||
* @return the <code>Container</code> associated with this
|
* @return the <code>Container</code> associated with this
|
||||||
* <code>BeanContext</code>.
|
* <code>BeanContext</code>.
|
||||||
*/
|
*/
|
||||||
public Container getContainer();
|
Container getContainer();
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ public interface BeanContextMembershipListener extends EventListener {
|
|||||||
* @param event the event, including which children were added.
|
* @param event the event, including which children were added.
|
||||||
* @see java.beans.beancontext.BeanContext#add(java.lang.Object)
|
* @see java.beans.beancontext.BeanContext#add(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void childrenAdded(BeanContextMembershipEvent event);
|
void childrenAdded(BeanContextMembershipEvent event);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When beans are removed from a <code>BeanContext</code>,
|
* When beans are removed from a <code>BeanContext</code>,
|
||||||
@ -66,5 +66,5 @@ public interface BeanContextMembershipListener extends EventListener {
|
|||||||
* @param event the event, including which children were removed.
|
* @param event the event, including which children were removed.
|
||||||
* @see java.beans.beancontext.BeanContext#remove(java.lang.Object)
|
* @see java.beans.beancontext.BeanContext#remove(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void childrenRemoved(BeanContextMembershipEvent event);
|
void childrenRemoved(BeanContextMembershipEvent event);
|
||||||
}
|
}
|
||||||
|
@ -61,5 +61,5 @@ public interface BeanContextProxy {
|
|||||||
* @return the <code>BeanContextChild</code> associated with this
|
* @return the <code>BeanContextChild</code> associated with this
|
||||||
* <code>Object</code>.
|
* <code>Object</code>.
|
||||||
*/
|
*/
|
||||||
public BeanContextChild getBeanContextProxy();
|
BeanContextChild getBeanContextProxy();
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ public interface BeanContextServiceProvider {
|
|||||||
* <code>null</code>.
|
* <code>null</code>.
|
||||||
* @see java.beans.beancontext.BeanContextServices#getService(java.beans.beancontext.BeanContextChild,java.lang.Object,java.lang.Class,java.lang.Object,java.beans.beancontext.BeanContextServiceRevokedListener)
|
* @see java.beans.beancontext.BeanContextServices#getService(java.beans.beancontext.BeanContextChild,java.lang.Object,java.lang.Class,java.lang.Object,java.beans.beancontext.BeanContextServiceRevokedListener)
|
||||||
*/
|
*/
|
||||||
public Object getService(BeanContextServices services, Object requestor, Class serviceClass, Object serviceSelector);
|
Object getService(BeanContextServices services, Object requestor, Class serviceClass, Object serviceSelector);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Release the service.
|
* Release the service.
|
||||||
@ -109,7 +109,7 @@ public interface BeanContextServiceProvider {
|
|||||||
* @param service the service to relinquish
|
* @param service the service to relinquish
|
||||||
* @see java.beans.beancontext.BeanContextServices#releaseService(java.beans.beancontext.BeanContextChild,java.lang.Object,java.lang.Object)
|
* @see java.beans.beancontext.BeanContextServices#releaseService(java.beans.beancontext.BeanContextChild,java.lang.Object,java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void releaseService(BeanContextServices services, Object requestor, Object service);
|
void releaseService(BeanContextServices services, Object requestor, Object service);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of valid service selectors for the specified service class.
|
* Get a list of valid service selectors for the specified service class.
|
||||||
@ -136,5 +136,5 @@ public interface BeanContextServiceProvider {
|
|||||||
* class, or <code>null</code>.
|
* class, or <code>null</code>.
|
||||||
* @see java.beans.beancontext.BeanContextServices#getCurrentServiceSelectors(java.lang.Class)
|
* @see java.beans.beancontext.BeanContextServices#getCurrentServiceSelectors(java.lang.Class)
|
||||||
*/
|
*/
|
||||||
public Iterator getCurrentServiceSelectors(BeanContextServices services, Class serviceClass);
|
Iterator getCurrentServiceSelectors(BeanContextServices services, Class serviceClass);
|
||||||
}
|
}
|
||||||
|
@ -56,5 +56,5 @@ public interface BeanContextServiceProviderBeanInfo extends BeanInfo {
|
|||||||
* Get <code>BeanInfo</code>s for all of the service classes of this <code>BeanInfoServiceProvider</code>.
|
* Get <code>BeanInfo</code>s for all of the service classes of this <code>BeanInfoServiceProvider</code>.
|
||||||
* @return <code>BeanInfo</code>s for all provided service classes.
|
* @return <code>BeanInfo</code>s for all provided service classes.
|
||||||
*/
|
*/
|
||||||
public BeanInfo[] getServicesBeanInfo();
|
BeanInfo[] getServicesBeanInfo();
|
||||||
}
|
}
|
||||||
|
@ -58,5 +58,5 @@ public interface BeanContextServiceRevokedListener extends EventListener {
|
|||||||
* @param event the service revoked event.
|
* @param event the service revoked event.
|
||||||
* @see java.beans.beancontext.BeanContextServices#revokeService(java.lang.Class,java.beans.beancontext.BeanContextServiceProvider,boolean)
|
* @see java.beans.beancontext.BeanContextServices#revokeService(java.lang.Class,java.beans.beancontext.BeanContextServiceProvider,boolean)
|
||||||
*/
|
*/
|
||||||
public void serviceRevoked(BeanContextServiceRevokedEvent event);
|
void serviceRevoked(BeanContextServiceRevokedEvent event);
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ public interface BeanContextServices
|
|||||||
* @param provider the factory that will actually provide the service.
|
* @param provider the factory that will actually provide the service.
|
||||||
* @return whether the service was added or not.
|
* @return whether the service was added or not.
|
||||||
*/
|
*/
|
||||||
public boolean addService (Class serviceClass,
|
boolean addService (Class serviceClass,
|
||||||
BeanContextServiceProvider provider);
|
BeanContextServiceProvider provider);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -83,7 +83,7 @@ public interface BeanContextServices
|
|||||||
* @param revokeNow whether to release all current references to
|
* @param revokeNow whether to release all current references to
|
||||||
* the service.
|
* the service.
|
||||||
*/
|
*/
|
||||||
public void revokeService (Class serviceClass,
|
void revokeService (Class serviceClass,
|
||||||
BeanContextServiceProvider provider,
|
BeanContextServiceProvider provider,
|
||||||
boolean revokeNow);
|
boolean revokeNow);
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ public interface BeanContextServices
|
|||||||
* @param service the service to relinquish
|
* @param service the service to relinquish
|
||||||
* @see #getService(java.beans.beancontext.BeanContextChild,java.lang.Object,java.lang.Class,java.lang.Object,java.beans.beancontext.BeanContextServiceRevokedListener)
|
* @see #getService(java.beans.beancontext.BeanContextChild,java.lang.Object,java.lang.Class,java.lang.Object,java.beans.beancontext.BeanContextServiceRevokedListener)
|
||||||
*/
|
*/
|
||||||
public void releaseService (BeanContextChild requestorChild, Object requestor,
|
void releaseService (BeanContextChild requestorChild, Object requestor,
|
||||||
Object service);
|
Object service);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -152,7 +152,7 @@ public interface BeanContextServices
|
|||||||
* <code>instanceof</code> serviceClass is true), or
|
* <code>instanceof</code> serviceClass is true), or
|
||||||
* <code>null</code>.
|
* <code>null</code>.
|
||||||
*/
|
*/
|
||||||
public Object getService (BeanContextChild requestorChild, Object requestor,
|
Object getService (BeanContextChild requestorChild, Object requestor,
|
||||||
Class serviceClass, Object serviceSelector,
|
Class serviceClass, Object serviceSelector,
|
||||||
BeanContextServiceRevokedListener listener)
|
BeanContextServiceRevokedListener listener)
|
||||||
throws TooManyListenersException;
|
throws TooManyListenersException;
|
||||||
@ -167,7 +167,7 @@ public interface BeanContextServices
|
|||||||
* @return a list of all service classes supported.
|
* @return a list of all service classes supported.
|
||||||
* @see java.beans.beancontext.BeanContext#globalHierarchyLock
|
* @see java.beans.beancontext.BeanContext#globalHierarchyLock
|
||||||
*/
|
*/
|
||||||
public Iterator getCurrentServiceClasses ();
|
Iterator getCurrentServiceClasses ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of valid service selectors for the specified service class.
|
* Get a list of valid service selectors for the specified service class.
|
||||||
@ -187,7 +187,7 @@ public interface BeanContextServices
|
|||||||
* @return a list of valid service selectors for the service
|
* @return a list of valid service selectors for the service
|
||||||
* class, or <code>null</code>.
|
* class, or <code>null</code>.
|
||||||
*/
|
*/
|
||||||
public Iterator getCurrentServiceSelectors (Class serviceClass);
|
Iterator getCurrentServiceSelectors (Class serviceClass);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tell whether the specified service class is available.
|
* Tell whether the specified service class is available.
|
||||||
@ -197,14 +197,13 @@ public interface BeanContextServices
|
|||||||
* @param serviceClass the service class to check on.
|
* @param serviceClass the service class to check on.
|
||||||
* @return whether the specified service class is available.
|
* @return whether the specified service class is available.
|
||||||
*/
|
*/
|
||||||
public boolean hasService (Class serviceClass);
|
boolean hasService (Class serviceClass);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a listener on all adds and removes of services.
|
* Add a listener on all adds and removes of services.
|
||||||
* @param listener the listener to add.
|
* @param listener the listener to add.
|
||||||
*/
|
*/
|
||||||
public void
|
void addBeanContextServicesListener (BeanContextServicesListener listener);
|
||||||
addBeanContextServicesListener (BeanContextServicesListener listener);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a listener on all adds and removes of services.
|
* Remove a listener on all adds and removes of services.
|
||||||
@ -213,6 +212,5 @@ public interface BeanContextServices
|
|||||||
* <code>getService()</code>.
|
* <code>getService()</code>.
|
||||||
* @param listener the listener to add.
|
* @param listener the listener to add.
|
||||||
*/
|
*/
|
||||||
public void
|
void removeBeanContextServicesListener (BeanContextServicesListener listener);
|
||||||
removeBeanContextServicesListener (BeanContextServicesListener listener);
|
|
||||||
}
|
}
|
||||||
|
@ -52,5 +52,5 @@ public interface BeanContextServicesListener extends BeanContextServiceRevokedLi
|
|||||||
* @param event the service revoked event, with useful information
|
* @param event the service revoked event, with useful information
|
||||||
* about the new service.
|
* about the new service.
|
||||||
*/
|
*/
|
||||||
public void serviceAvailable(BeanContextServiceAvailableEvent event);
|
void serviceAvailable(BeanContextServiceAvailableEvent event);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user