Last active
August 5, 2019 11:18
-
-
Save danielgospodinow/82dfff69c6f170c97c7d94afdc7ac1c1 to your computer and use it in GitHub Desktop.
Calcualtor Provider's Implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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