KIE Internal 6.0.0.Beta4

org.kie.internal.runtime.manager
Interface RuntimeManagerCacheEntryPoint


public interface RuntimeManagerCacheEntryPoint

This interface is meant to be implemented in components that

Classes in EE and CDI Container components that do instantiate and configure RuntimeManager instances should makes sure to inject an instance of this class in order to make the RuntimeManager instances they create available for other deployments dependent on them.

Implementations of this class should never interfere in the life-cycle of the RuntimeManager.

Lastly, implementations of this class should be thread-safe and should be able to be used in any scope.


Method Summary
 void addDomainRuntimeManager(String domain, org.kie.api.runtime.manager.RuntimeManager runtimeManager)
          Add a new RuntimeManager instance.
 org.kie.api.runtime.manager.RuntimeManager removeDomainRuntimeManager(String domain)
          Remove a RuntimeManager instance that.
 org.kie.api.runtime.manager.RuntimeManager replaceDomainRuntimeManager(String domain, org.kie.api.runtime.manager.RuntimeManager runtimeManager)
          Replace a RuntimeManager instance that has been closed with a new RuntimeManager instance.
 

Method Detail

addDomainRuntimeManager

void addDomainRuntimeManager(String domain,
                             org.kie.api.runtime.manager.RuntimeManager runtimeManager)
Add a new RuntimeManager instance.

Parameters:
domain - The name of the domain with which the RuntimeManager is associated.
runtimeManager - The RuntimeManager instance.

replaceDomainRuntimeManager

org.kie.api.runtime.manager.RuntimeManager replaceDomainRuntimeManager(String domain,
                                                                       org.kie.api.runtime.manager.RuntimeManager runtimeManager)
Replace a RuntimeManager instance that has been closed with a new RuntimeManager instance.

Parameters:
domain - The name of the domain with which the new RuntimeManager is associated.
runtimeManager - The new RuntimeManager instance.
Returns:
The RuntimeManager instance that's being replaced.

removeDomainRuntimeManager

org.kie.api.runtime.manager.RuntimeManager removeDomainRuntimeManager(String domain)
Remove a RuntimeManager instance that. Use this method if the RuntimeManager is not being replaced, but, for example, is being closed because the domain has been been deleted.

Parameters:
domain - The name of the domain with which the new RuntimeManager is associated.
Returns:
The RuntimeManager instance that's being removed

KIE Internal 6.0.0.Beta4

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.