test_class.declarator: runnerFactory
test_class.modifier: private
test_class.original_string: private StandardLiveActivityRunnerFactory runnerFactory;
test_class.type: StandardLiveActivityRunnerFactory
test_class.var_name: runnerFactory
test_class.declarator: runnerListener
test_class.modifier: private
test_class.original_string: private LiveActivityRunnerListener runnerListener;
test_class.type: LiveActivityRunnerListener
test_class.var_name: runnerListener
test_class.declarator: liveActivityRuntime
test_class.modifier: private
test_class.original_string: private LiveActivityRuntime liveActivityRuntime;
test_class.type: LiveActivityRuntime
test_class.var_name: liveActivityRuntime
test_class.declarator: configuration
test_class.modifier: private
test_class.original_string: private LiveActivityConfiguration configuration;
test_class.type: LiveActivityConfiguration
test_class.var_name: configuration
test_class.declarator: filesystem
test_class.modifier: private
test_class.original_string: private InternalLiveActivityFilesystem filesystem;
test_class.type: InternalLiveActivityFilesystem
test_class.var_name: filesystem
test_class.declarator: liveActivity
test_class.modifier: private
test_class.original_string: private InstalledLiveActivity liveActivity;
test_class.type: InstalledLiveActivity
test_class.var_name: liveActivity
test_class.declarator: spaceEnvironment
test_class.modifier: private
test_class.original_string: private InteractiveSpacesEnvironment spaceEnvironment;
test_class.type: InteractiveSpacesEnvironment
test_class.var_name: spaceEnvironment
test_class.declarator: log
test_class.modifier: private
test_class.original_string: private Log log;
test_class.type: Log
test_class.var_name: log
test_class.file: runtime/activity/interactivespaces-activity-runtime/src/test/java/interactivespaces/liveactivity/runtime/StandardLiveActivityRunnerFactoryTest.java
test_class.identifier: StandardLiveActivityRunnerFactoryTest
test_case.body: @Test
    public void testUnknownType() {
      try {
        runnerFactory.newLiveActivityRunner("foo", liveActivity, filesystem, configuration, runnerListener,
            liveActivityRuntime);
  
        Assert.fail();
      } catch (Exception e) {
        // expected
      }
    }
test_case.class_method_signature: StandardLiveActivityRunnerFactoryTest.testUnknownType()
test_case.full_signature: @Test public void testUnknownType()
test_case.identifier: testUnknownType
test_case.invocations: newLiveActivityRunner fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUnknownType()
focal_class.declarator: ACTIVITY_WRAPPER_FACTORY_RETRIES_DEFAULT = 5
focal_class.modifier: public static final
focal_class.original_string: public static final int ACTIVITY_WRAPPER_FACTORY_RETRIES_DEFAULT = 5;
focal_class.type: int
focal_class.var_name: ACTIVITY_WRAPPER_FACTORY_RETRIES_DEFAULT
focal_class.declarator: ACTIVITY_WRAPPER_FACTORY_RETRY_DELAY_DEFAULT = 500
focal_class.modifier: public static final
focal_class.original_string: public static final int ACTIVITY_WRAPPER_FACTORY_RETRY_DELAY_DEFAULT = 500;
focal_class.type: int
focal_class.var_name: ACTIVITY_WRAPPER_FACTORY_RETRY_DELAY_DEFAULT
focal_class.declarator: DEFAULT_FACTORY_VERSION = new Version(0, 0, 0)
focal_class.modifier: public static final
focal_class.original_string: public static final Version DEFAULT_FACTORY_VERSION = new Version(0, 0, 0);
focal_class.type: Version
focal_class.var_name: DEFAULT_FACTORY_VERSION
focal_class.declarator: VERSION_RANGE_SEPARATOR = ';'
focal_class.modifier: public static final
focal_class.original_string: public static final char VERSION_RANGE_SEPARATOR = ';';
focal_class.type: char
focal_class.var_name: VERSION_RANGE_SEPARATOR
focal_class.declarator: activityWrapperFactories =
        NamedVersionedResourceCollection.newNamedVersionedResourceCollection()
focal_class.modifier: private final
focal_class.original_string: private final NamedVersionedResourceCollection<ActivityWrapperFactory> activityWrapperFactories =
        NamedVersionedResourceCollection.newNamedVersionedResourceCollection();
focal_class.type: NamedVersionedResourceCollection<ActivityWrapperFactory>
focal_class.var_name: activityWrapperFactories
focal_class.declarator: spaceEnvironment
focal_class.modifier: private
focal_class.original_string: private InteractiveSpacesEnvironment spaceEnvironment;
focal_class.type: InteractiveSpacesEnvironment
focal_class.var_name: spaceEnvironment
focal_class.declarator: activityWrapperFactoryRetries = ACTIVITY_WRAPPER_FACTORY_RETRIES_DEFAULT
focal_class.modifier: private
focal_class.original_string: private int activityWrapperFactoryRetries = ACTIVITY_WRAPPER_FACTORY_RETRIES_DEFAULT;
focal_class.type: int
focal_class.var_name: activityWrapperFactoryRetries
focal_class.declarator: activityWrapperFactoryRetryDelay = ACTIVITY_WRAPPER_FACTORY_RETRY_DELAY_DEFAULT
focal_class.modifier: private
focal_class.original_string: private int activityWrapperFactoryRetryDelay = ACTIVITY_WRAPPER_FACTORY_RETRY_DELAY_DEFAULT;
focal_class.type: int
focal_class.var_name: activityWrapperFactoryRetryDelay
focal_class.file: runtime/activity/interactivespaces-activity-runtime/src/main/java/interactivespaces/liveactivity/runtime/StandardLiveActivityRunnerFactory.java
focal_class.identifier: StandardLiveActivityRunnerFactory
focal_class.interfaces: implements LiveActivityRunnerFactory
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.StandardLiveActivityRunnerFactory(InteractiveSpacesEnvironment spaceEnvironment)
focal_class.full_signature: public  StandardLiveActivityRunnerFactory(InteractiveSpacesEnvironment spaceEnvironment)
focal_class.identifier: StandardLiveActivityRunnerFactory
focal_class.modifiers: public
focal_class.parameters: (InteractiveSpacesEnvironment spaceEnvironment)
focal_class.signature:  StandardLiveActivityRunnerFactory(InteractiveSpacesEnvironment spaceEnvironment)
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.startup()
focal_class.full_signature: @Override public void startup()
focal_class.identifier: startup
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startup()
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.shutdown()
focal_class.full_signature: @Override public void shutdown()
focal_class.identifier: shutdown
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void shutdown()
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.newLiveActivityRunner(String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_class.full_signature: @Override public StandardLiveActivityRunner newLiveActivityRunner(String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_class.identifier: newLiveActivityRunner
focal_class.modifiers: @Override public
focal_class.parameters: (String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_class.return: StandardLiveActivityRunner
focal_class.signature: StandardLiveActivityRunner newLiveActivityRunner(String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.getActivityWrapperFactory(String activityType, VersionRange versionRange)
focal_class.full_signature: private ActivityWrapperFactory getActivityWrapperFactory(String activityType, VersionRange versionRange)
focal_class.identifier: getActivityWrapperFactory
focal_class.modifiers: private
focal_class.parameters: (String activityType, VersionRange versionRange)
focal_class.return: ActivityWrapperFactory
focal_class.signature: ActivityWrapperFactory getActivityWrapperFactory(String activityType, VersionRange versionRange)
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.getActivityWrapperFactoryWithoutRetry(String activityType, VersionRange versionRange)
focal_class.full_signature: private ActivityWrapperFactory getActivityWrapperFactoryWithoutRetry(String activityType, VersionRange versionRange)
focal_class.identifier: getActivityWrapperFactoryWithoutRetry
focal_class.modifiers: private
focal_class.parameters: (String activityType, VersionRange versionRange)
focal_class.return: ActivityWrapperFactory
focal_class.signature: ActivityWrapperFactory getActivityWrapperFactoryWithoutRetry(String activityType, VersionRange versionRange)
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.newLiveActivityRunner(InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_class.full_signature: @Override public StandardLiveActivityRunner newLiveActivityRunner(InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_class.identifier: newLiveActivityRunner
focal_class.modifiers: @Override public
focal_class.parameters: (InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_class.return: StandardLiveActivityRunner
focal_class.signature: StandardLiveActivityRunner newLiveActivityRunner(InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.getConfiguredType(Configuration configuration)
focal_class.full_signature: @Override public String getConfiguredType(Configuration configuration)
focal_class.identifier: getConfiguredType
focal_class.modifiers: @Override public
focal_class.parameters: (Configuration configuration)
focal_class.return: String
focal_class.signature: String getConfiguredType(Configuration configuration)
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.registerActivityWrapperFactory(ActivityWrapperFactory factory)
focal_class.full_signature: @Override public void registerActivityWrapperFactory(ActivityWrapperFactory factory)
focal_class.identifier: registerActivityWrapperFactory
focal_class.modifiers: @Override public
focal_class.parameters: (ActivityWrapperFactory factory)
focal_class.return: void
focal_class.signature: void registerActivityWrapperFactory(ActivityWrapperFactory factory)
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.unregisterActivityWrapperFactory(ActivityWrapperFactory factory)
focal_class.full_signature: @Override public void unregisterActivityWrapperFactory(ActivityWrapperFactory factory)
focal_class.identifier: unregisterActivityWrapperFactory
focal_class.modifiers: @Override public
focal_class.parameters: (ActivityWrapperFactory factory)
focal_class.return: void
focal_class.signature: void unregisterActivityWrapperFactory(ActivityWrapperFactory factory)
focal_class.class_method_signature: StandardLiveActivityRunnerFactory.getFactoryVersion(ActivityWrapperFactory factory)
focal_class.full_signature: private Version getFactoryVersion(ActivityWrapperFactory factory)
focal_class.identifier: getFactoryVersion
focal_class.modifiers: private
focal_class.parameters: (ActivityWrapperFactory factory)
focal_class.return: Version
focal_class.signature: Version getFactoryVersion(ActivityWrapperFactory factory)
focal_method.body: @Override
    public StandardLiveActivityRunner newLiveActivityRunner(String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime) {
  
      String bareActivityType = activityType;
      VersionRange versionRange = null;
      int versionRangePos = bareActivityType.indexOf(VERSION_RANGE_SEPARATOR);
      if (versionRangePos != -1) {
        versionRange = VersionRange.parseVersionRange(bareActivityType.substring(versionRangePos + 1));
        bareActivityType = bareActivityType.substring(0, versionRangePos);
      }
      bareActivityType = bareActivityType.toLowerCase();
  
      ActivityWrapperFactory wrapperFactory = getActivityWrapperFactory(bareActivityType, versionRange);
      if (wrapperFactory != null) {
        ActivityWrapper wrapper =
            wrapperFactory.newActivityWrapper(liveActivity, activityFilesystem, configuration, liveActivityRuntime);
  
        StandardLiveActivityRunner activeLiveActivity =
            new StandardLiveActivityRunner(liveActivity, wrapper, activityFilesystem, configuration,
                liveActivityRunnerListener, liveActivityRuntime);
  
        return activeLiveActivity;
      } else {
        String message =
            String.format("Unsupported activity type %s for activity %s", activityType.toString(),
                liveActivity.getUuid());
        liveActivityRuntime.getSpaceEnvironment().getLog().warn(message);
  
        throw new SimpleInteractiveSpacesException(message);
      }
    }
focal_method.class_method_signature: StandardLiveActivityRunnerFactory.newLiveActivityRunner(String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_method.full_signature: @Override public StandardLiveActivityRunner newLiveActivityRunner(String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_method.identifier: newLiveActivityRunner
focal_method.invocations: indexOf parseVersionRange substring substring toLowerCase getActivityWrapperFactory newActivityWrapper format toString getUuid warn getLog getSpaceEnvironment
focal_method.modifiers: @Override public
focal_method.parameters: (String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)
focal_method.return: StandardLiveActivityRunner
focal_method.signature: StandardLiveActivityRunner newLiveActivityRunner(String activityType, InstalledLiveActivity liveActivity,
        InternalLiveActivityFilesystem activityFilesystem, LiveActivityConfiguration configuration,
        LiveActivityRunnerListener liveActivityRunnerListener, LiveActivityRuntime liveActivityRuntime)