org.jinterop.winreg
Class JIWinRegFactory

java.lang.Object
  extended by org.jinterop.winreg.JIWinRegFactory

public class JIWinRegFactory
extends java.lang.Object

Factory to get an implementation of IJIWinReg.

This interface uses "Windows Remote Registry" and "Server" services and these must be running on target workstation.

Since:
1.0

Method Summary
static JIWinRegFactory getSingleTon()
          Instantiates the Factory.
 IJIWinReg getWinreg(IJIAuthInfo authInfo, java.lang.String serverName, boolean smbTransport)
          Gets an Implementation of WinReg interface, currently only SMB transport is supported.
 IJIWinReg getWinreg(java.lang.String serverName, boolean smbTransport)
          Gets an Implementation of WinReg interface, currently only SMB transport is supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleTon

public static JIWinRegFactory getSingleTon()
Instantiates the Factory.

Returns:

getWinreg

public IJIWinReg getWinreg(IJIAuthInfo authInfo,
                           java.lang.String serverName,
                           boolean smbTransport)
                    throws java.net.UnknownHostException
Gets an Implementation of WinReg interface, currently only SMB transport is supported.

Parameters:
authInfo - credentials for access to Windows Remote Registry service
serverName - target server
smbTransport - true if SMB transport is required , false will return null.
Returns:
Throws:
java.net.UnknownHostException

getWinreg

public IJIWinReg getWinreg(java.lang.String serverName,
                           boolean smbTransport)
                    throws java.net.UnknownHostException
Gets an Implementation of WinReg interface, currently only SMB transport is supported.

Parameters:
smbTransport - true if SMB transport is required , false will return null.
Returns:
Throws:
java.net.UnknownHostException