OSDN Git Service

Remove Id tag
[stigmata/stigmata.git] / src / main / java / jp / sourceforge / stigmata / spi / AbstractServiceProvider.java
1 package jp.sourceforge.stigmata.spi;
2
3 import java.util.Locale;
4
5 /**
6  * Base abstract class for birthmark SPI.
7  *
8  * @author Haruaki TAMADA
9  */
10 public abstract class AbstractServiceProvider implements ServiceProvider{
11
12     /**
13      * returning implementation vendor name of this SPI.
14      */
15     @Override
16     public String getDescription(){
17         return getDescription(Locale.getDefault());
18     }
19
20     /**
21      * returning implementation vendor name of this SPI.
22      */
23     @Override
24     public String getVendorName(){
25         return getClass().getPackage().getImplementationVendor();
26     }
27
28     /**
29      * returning version of this SPI.
30      */
31     @Override
32     public String getVersion(){
33         return getClass().getPackage().getImplementationVersion();
34     }
35
36 }