com.smardec.jndi.mirror
Class CopyHelper

java.lang.Object
  |
  +--com.smardec.jndi.mirror.CopyHelper

public class CopyHelper
extends java.lang.Object

CopyHelper provides utility method for copying the content of one Context to another.


Constructor Summary
private CopyHelper()
          The class should not be instantiated.
 
Method Summary
static void copy(javax.naming.Context from, javax.naming.Context to)
          Creates full copy of the Context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyHelper

private CopyHelper()
The class should not be instantiated.

Method Detail

copy

public static void copy(javax.naming.Context from,
                        javax.naming.Context to)
                 throws javax.naming.NamingException
Creates full copy of the Context.

Parameters:
from - Source context
to - Destination context
Throws:
javax.naming.NamingException - If a naming exception is encountered


Copyright © 2004-2005 Smardec