org.eclipse.stardust.engine.api.ejb2
Class EjbEnvServiceFactory
java.lang.Object
org.eclipse.stardust.engine.core.runtime.beans.DefaultServiceFactory
org.eclipse.stardust.engine.core.runtime.beans.AbstractSessionAwareServiceFactory
org.eclipse.stardust.engine.api.ejb2.EjbEnvServiceFactory
- All Implemented Interfaces:
- ServiceFactory
public class EjbEnvServiceFactory
- extends org.eclipse.stardust.engine.core.runtime.beans.AbstractSessionAwareServiceFactory
Retrieves IPP service homes from the EJB environment's JNDI context. Supports both
login- and principal-based authentication scenarios.
- Version:
- $Revision$
- Author:
- rsauer
- See Also:
ServiceFactoryLocator
|
Method Summary |
<T extends org.eclipse.stardust.engine.api.runtime.Service>
T |
|
getService(Class<T> type)
Retrieves a service instance. |
void |
setCredentials(Map credentials)
Retrieves username and password credentials, if available,
for later use. |
| Methods inherited from class org.eclipse.stardust.engine.core.runtime.beans.AbstractSessionAwareServiceFactory |
close, getSessionId |
| Methods inherited from class org.eclipse.stardust.engine.core.runtime.beans.DefaultServiceFactory |
getAdministrationService, getDocumentManagementService, getQueryService, getUserService, getWorkflowService, release, setProperties |
EjbEnvServiceFactory
public EjbEnvServiceFactory()
getService
public <T extends org.eclipse.stardust.engine.api.runtime.Service> T getService(Class<T> type)
throws ServiceNotAvailableException,
org.eclipse.stardust.common.error.LoginFailedException
- Description copied from interface:
ServiceFactory
- Retrieves a service instance. Is provided for extensibility beyond the core service
set.
- Specified by:
getService in interface ServiceFactory- Overrides:
getService in class org.eclipse.stardust.engine.core.runtime.beans.AbstractSessionAwareServiceFactory
- Parameters:
type - The class name of the service to be retrieved.
- Returns:
- An instance of the requested service.
- Throws:
ServiceNotAvailableException - In case the (possible remote) service could not
be reached.
org.eclipse.stardust.common.error.LoginFailedException - In case the authentication to the service fails.
setCredentials
public void setCredentials(Map credentials)
- Retrieves
username and password credentials, if available,
for later use.
- Parameters:
credentials - The credentials available in the current configuration.
Copyright © 2017 Eclipse Stardust. All Rights Reserved.