Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.9.0)
E15995-08


oracle.wcps.activity.provider
Class AGConnectionFactory

java.lang.Object
  extended by oracle.wcps.activity.provider.AGConnectionFactory


public class AGConnectionFactory
extends java.lang.Object

Factory to create new ActivityGraphConnection objects in an efficient manner, since they're created each time a Scenario is invoked. ActivityGraphConnection doesn't use ScenarioContext, but AGExecutableResource has a RestClientFactory that uses the ScenarioContext. An instance of ActivityGraphConnection and its AGExecutableResources will be kept in a cache for each DataProvider/connection name combination. Those objects will be copied via copy constructors when needed.

See Also:
ConnectionFactoryCache

Constructor Summary
AGConnectionFactory(java.lang.String dataProviderName)
           

 

Method Summary
 IConnection getConnection(IConnectionConfig config)
          Check the cache for the connection, create one if it's not there and add to cache.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

AGConnectionFactory

public AGConnectionFactory(java.lang.String dataProviderName)

Method Detail

getConnection

public IConnection getConnection(IConnectionConfig config)
Check the cache for the connection, create one if it's not there and add to cache. Then, create a copy of the cached connection via its copy constructor.
Parameters:
config - The config for the connection.
Returns:
an instance of the connection with its executable resources

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.9.0)
E15995-08


Copyright © 2009, 2014, Oracle and/or its affiliates. All rights reserved.