User: simone  
  Date: 01/01/20 16:23:01

  Modified:    src/main/org/jboss/naming NonSerializableFactory.java
  Log:
  Cosmetics
  
  Revision  Changes    Path
  1.2       +11 -4     jboss/src/main/org/jboss/naming/NonSerializableFactory.java
  
  Index: NonSerializableFactory.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jboss/src/main/org/jboss/naming/NonSerializableFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NonSerializableFactory.java       2001/01/14 01:28:37     1.1
  +++ NonSerializableFactory.java       2001/01/21 00:23:01     1.2
  @@ -20,7 +20,7 @@
   
   /** A utility class that allows one to bind a non-serializable object into a
   local JNDI context. The binding will only be valid for the lifetime of the
  -VM in which the JNDI InitialContext lives. An example usage code snipet is:
  +VM in which the JNDI InitialContext lives. An example usage code snippet is:
   
   <code>
       // The non-Serializable object to bind
  @@ -40,17 +40,24 @@
       ctx.rebind(key, memoryRef);
   </code>
   
  +To unbind the object, use the following code snippet:
  +
  +<code>
  +     new InitialContext().unbind(key);
  +     NonSerializableFactory.unbind(key);
  +</code>
  +
   @see javax.naming.spi.ObjectFactory
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.1 $
  +@version $Revision: 1.2 $
   */
   public class NonSerializableFactory implements ObjectFactory
   {
        private static Map wrapperMap = Collections.synchronizedMap(new HashMap());
   
  -    /** Place an object into the NonSerializableFactory namespce for subsequent
  -    access by getObject. There cannot be an existing binding for key.
  +    /** Place an object into the NonSerializableFactory namespace for subsequent
  +    access by getObject. There cannot be an already existing binding for key.
   
       @param key, the name to bind target under. This should typically be the
       name that will be used to bind target in the JNDI namespace, but it does
  
  
  

Reply via email to