|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.csutils.core.registry.DefaultConnectionProvider
public class DefaultConnectionProvider
Default implementation of ConnectionProvider
, suitable for
standalone programs, which is configured with a registry URL, a
user name, and a password.
Constructor Summary | |
---|---|
DefaultConnectionProvider(java.net.URL pURL,
java.lang.String pUser,
java.lang.String pPassword)
Creates a new instance with the given registry URL, user name, and password. |
|
DefaultConnectionProvider(java.net.URL pURL,
java.lang.String pUser,
java.lang.String pPassword,
boolean pManagingTypes)
Creates a new instance with the given registry URL, user name, and password. |
Method Summary | |
---|---|
javax.xml.registry.Connection |
getConnection()
Returns a registry connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConnectionProvider(java.net.URL pURL, java.lang.String pUser, java.lang.String pPassword)
pURL
- The URL of the CentraSite databasepUser
- The user name to use for logging in to the CentraSite database.pPassword
- The password to use for logging in to the CentraSite database.public DefaultConnectionProvider(java.net.URL pURL, java.lang.String pUser, java.lang.String pPassword, boolean pManagingTypes)
pURL
- The URL of the CentraSite databasepUser
- The user name to use for logging in to the CentraSite database.pPassword
- The password to use for logging in to the CentraSite database.pManagingTypes
- Whether the returned connection must be
suitable for using the CentraSite type management API.Method Detail |
---|
public javax.xml.registry.Connection getConnection() throws javax.xml.registry.JAXRException
ConnectionProvider
getConnection
in interface ConnectionProvider
javax.xml.registry.JAXRException
- The operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |