View Javadoc

1   package fr.in2p3.jsaga.impl.context;
2   
3   import fr.in2p3.jsaga.engine.session.SessionConfiguration;
4   import fr.in2p3.jsaga.engine.factories.SecurityAdaptorFactory;
5   import org.ogf.saga.context.Context;
6   import org.ogf.saga.context.ContextFactory;
7   import org.ogf.saga.error.*;
8   
9   /* ***************************************************
10  * *** Centre de Calcul de l'IN2P3 - Lyon (France) ***
11  * ***             http://cc.in2p3.fr/             ***
12  * ***************************************************
13  * File:   ContextFactoryImpl
14  * Author: Sylvain Reynaud (sreynaud@in2p3.fr)
15  * Date:   17 sept. 2007
16  * ***************************************************
17  * Description:                                      */
18  /**
19   *
20   */
21  public class ContextFactoryImpl extends ContextFactory {
22      private SessionConfiguration m_config;
23      private SecurityAdaptorFactory m_adaptorFactory;
24  
25      public ContextFactoryImpl(SessionConfiguration config, SecurityAdaptorFactory adaptorFactory) {
26          m_config = config;
27          m_adaptorFactory = adaptorFactory;
28      }
29  
30      protected Context doCreateContext(String type) throws IncorrectStateException, TimeoutException, NoSuccessException {
31          return new ContextImpl(type, m_config, m_adaptorFactory);
32      }
33  }