Skip to content

Instantly share code, notes, and snippets.

@danielgospodinow
Last active August 5, 2019 11:18
Show Gist options
  • Save danielgospodinow/82dfff69c6f170c97c7d94afdc7ac1c1 to your computer and use it in GitHub Desktop.
Save danielgospodinow/82dfff69c6f170c97c7d94afdc7ac1c1 to your computer and use it in GitHub Desktop.
Calcualtor Provider's Implementation
import com.dg.osgi.calculator.provider.api.Calculator;
import org.osgi.service.component.annotations.Component;
@Component
public class CalculatorImpl implements Calculator {
public int add(int a, int b) {
return a + b;
}
public int multiply(int a, int b) {
return a * b;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment