/[classpath]/classpath/java/beans/beancontext/BeanContext.java
ViewVC logotype

Diff of /classpath/java/beans/beancontext/BeanContext.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mark, Tue Jan 22 22:26:59 2002 UTC revision 1.5 by mkoch, Sun Oct 12 15:29:25 2003 UTC
# Line 183  public interface BeanContext Line 183  public interface BeanContext
183           * </UL>           * </UL>
184           * @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.
185           */           */
186          public static final Object globalHierarchyLock = new Object();          Object globalHierarchyLock = new Object();
187    
188          /**          /**
189           * Instantiate a Bean using this Bean's <code>ClassLoader</code>           * Instantiate a Bean using this Bean's <code>ClassLoader</code>
# Line 204  public interface BeanContext Line 204  public interface BeanContext
204           * @exception ClassNotFoundException if a serialized Bean's class           * @exception ClassNotFoundException if a serialized Bean's class
205           *            is not found.           *            is not found.
206           */           */
207          public Object instantiateChild(String beanName)          Object instantiateChild(String beanName)
208                          throws IOException,                          throws IOException,
209                                 ClassNotFoundException;                                 ClassNotFoundException;
210    
# Line 230  public interface BeanContext Line 230  public interface BeanContext
230           * @param requestor a reference to the child requesting the resource.           * @param requestor a reference to the child requesting the resource.
231           * @see java.lang.ClassLoader#getResource(java.lang.String)           * @see java.lang.ClassLoader#getResource(java.lang.String)
232           */           */
233          public URL getResource(String resourceName, BeanContextChild requestor);          URL getResource(String resourceName, BeanContextChild requestor);
234    
235          /**          /**
236           * Get a resource as a stream.  The <code>BeanContext</code> will           * Get a resource as a stream.  The <code>BeanContext</code> will
# Line 254  public interface BeanContext Line 254  public interface BeanContext
254           * @param requestor a reference to the child requesting the resource.           * @param requestor a reference to the child requesting the resource.
255           * @see java.lang.ClassLoader#getResourceAsStream(java.lang.String)           * @see java.lang.ClassLoader#getResourceAsStream(java.lang.String)
256           */           */
257          public InputStream getResourceAsStream(String resourceName, BeanContextChild requestor);          InputStream getResourceAsStream(String resourceName, BeanContextChild requestor);
258    
259          /**          /**
260           * Add a listener on changes to the membership of this           * Add a listener on changes to the membership of this
261           * <code>BeanContext</code> object.           * <code>BeanContext</code> object.
262           * @param listener the listener to add.           * @param listener the listener to add.
263           */           */
264          public void addBeanContextMembershipListener(BeanContextMembershipListener listener);          void addBeanContextMembershipListener(BeanContextMembershipListener listener);
265    
266          /**          /**
267           * Remove a listener on changes to the membership of this           * Remove a listener on changes to the membership of this
268           * <code>BeanContext</code> object.           * <code>BeanContext</code> object.
269           * @param listener the listener to remove.           * @param listener the listener to remove.
270           */           */
271          public void removeBeanContextMembershipListener(BeanContextMembershipListener listener);          void removeBeanContextMembershipListener(BeanContextMembershipListener listener);
272  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26