org.eclipse.stardust.engine.api.ejb2
Class EjbEnvServiceFactory

java.lang.Object
  extended by org.eclipse.stardust.engine.core.runtime.beans.DefaultServiceFactory
      extended by org.eclipse.stardust.engine.core.runtime.beans.AbstractSessionAwareServiceFactory
          extended by 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

Constructor Summary
EjbEnvServiceFactory()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbEnvServiceFactory

public EjbEnvServiceFactory()
Method Detail

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.