class Synapse::ProcessManager::ProcessFactory
Represents a mechanism for create instances of processes @abstract
Public Instance Methods
create(process_type)
click to toggle source
Creates a new instance of a process of a given type
The returned process will be fully initialized and any resources required will be provided through dependency injection.
@abstract @param [Class] process_type @return [Process]
# File lib/synapse/process_manager/process_factory.rb, line 14 def create(process_type) raise NotImplementedError end
supports(process_type)
click to toggle source
Returns true if processes of the given type can be created by this factory
@abstract @param [Class] process_type @return [Boolean]
# File lib/synapse/process_manager/process_factory.rb, line 23 def supports(process_type) raise NotImplementedError end