public class ServiceFactoryLocator extends Object
ServiceFactory instances in an EJB
container environment.| Modifier and Type | Method and Description |
|---|---|
static ServiceFactory |
get() |
static ServiceFactory |
get(javax.ejb.EJBContext context)
Retrieves a
ServiceFactory using the credentials included in the given
EJB context. |
static ServiceFactory |
get(javax.ejb.EJBContext context,
Map properties)
Retrieves a
ServiceFactory using the credentials included in the given
EJB context. |
static ServiceFactory |
get(Map credentials)
Retrieves a service factory using explicitly provided credentials.
|
static ServiceFactory |
get(Map credentials,
Map properties)
Retrieves a service factory using explicitly provided credentials.
|
static ServiceFactory |
get(String user,
String password)
Retrieves a service factory using the given name/password pair as credentials.
|
static ServiceFactory |
get(String user,
String password,
Map properties)
Retrieves a service factory using the given name/password pair as credentials.
|
public static ServiceFactory get(javax.ejb.EJBContext context) throws org.eclipse.stardust.common.error.PublicException
ServiceFactory using the credentials included in the given
EJB context.context - The EJB context object providing credentials.org.eclipse.stardust.common.error.PublicExceptionpublic static ServiceFactory get(javax.ejb.EJBContext context, Map properties) throws org.eclipse.stardust.common.error.PublicException
ServiceFactory using the credentials included in the given
EJB context.context - The EJB context object providing credentials.properties - Additional properties.org.eclipse.stardust.common.error.PublicExceptionpublic static ServiceFactory get(Map credentials) throws org.eclipse.stardust.common.error.PublicException, org.eclipse.stardust.common.error.LoginFailedException
credentials - The credentials to be used.org.eclipse.stardust.common.error.PublicExceptionorg.eclipse.stardust.common.error.LoginFailedExceptionpublic static ServiceFactory get(Map credentials, Map properties) throws org.eclipse.stardust.common.error.PublicException, org.eclipse.stardust.common.error.LoginFailedException
credentials - The credentials to be used.properties - Additional properties.org.eclipse.stardust.common.error.PublicExceptionorg.eclipse.stardust.common.error.LoginFailedExceptionpublic static ServiceFactory get(String user, String password) throws org.eclipse.stardust.common.error.PublicException
user - The user name to be used.password - The password to be used.org.eclipse.stardust.common.error.PublicExceptionpublic static ServiceFactory get(String user, String password, Map properties) throws org.eclipse.stardust.common.error.PublicException
user - The user name to be used.password - The password to be used.properties - Additional properties.org.eclipse.stardust.common.error.PublicExceptionpublic static ServiceFactory get() throws org.eclipse.stardust.common.error.PublicException
org.eclipse.stardust.common.error.PublicExceptionCopyright © 2016 Eclipse Stardust. All Rights Reserved.