mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-13 10:57:13 +00:00
22 lines
425 B
Groovy
22 lines
425 B
Groovy
package com.nicklastrange.example
|
|
|
|
import com.nicklastrange.Processor
|
|
import com.nicklastrange.util.Helper
|
|
|
|
class SampleService {
|
|
Processor processor
|
|
|
|
SampleService(Processor processor) {
|
|
this.processor = processor
|
|
}
|
|
|
|
String process(String input) {
|
|
def result = processor.transform(input)
|
|
return Helper.clean(result)
|
|
}
|
|
|
|
private void reset() {
|
|
processor.reset()
|
|
}
|
|
}
|