Module: IronWorkerNG::Feature::Java::MergeExec::InstanceMethods
- Included in:
- Code::Java
- Defined in:
- lib/iron_worker_ng/feature/java/merge_exec.rb
Class Method Summary collapse
Instance Method Summary collapse
- #merge_exec(path, klass = nil) ⇒ Object (also: #exec, #merge_worker)
Class Method Details
.included(base) ⇒ Object
52 53 54 |
# File 'lib/iron_worker_ng/feature/java/merge_exec.rb', line 52 def self.included(base) IronWorkerNG::Code::Base.register_feature(:name => 'merge_exec', :for_klass => base, :args => 'PATH,CLASS') end |
Instance Method Details
#merge_exec(path, klass = nil) ⇒ Object Also known as: exec, merge_worker
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/iron_worker_ng/feature/java/merge_exec.rb', line 32 def merge_exec(path, klass = nil) @exec ||= nil unless @exec.nil? IronCore::Logger.warn 'IronWorkerNG', "Ignoring attempt to merge java exec with path='#{path}' and class='#{klass}'" return end @exec = IronWorkerNG::Feature::Java::MergeExec::Feature.new(self, path, klass) IronCore::Logger.info 'IronWorkerNG', "Merging java exec with path='#{path}' and class='#{klass}'" @features << @exec end |