New Jide License
[indepmod/experimental.git] / IndependentModeler / src / cz / cvut / promod / services / extensionService / ExtensionServiceImpl.java
blob3dec3f3acff59ceb108350855eace4a43b53a260
1 package cz.cvut.promod.services.extensionService;
3 import cz.cvut.promod.plugin.extension.Extension;
5 import java.util.List;
7 /**
8 * ProMod, master thesis project
9 * User: Petr Zverina, petr.zverina@gmail.com
10 * Date: 1:41:08, 26.1.2010
13 /**
14 * Implementation of Extension Service.
16 public class ExtensionServiceImpl implements ExtensionService {
18 private final List<Extension> extensionsList;
21 public ExtensionServiceImpl(final List<Extension> extensionsList) {
22 this.extensionsList = extensionsList;
25 /** {@inheritDoc} */
26 public Extension getExtension(final String identifier) {
27 for(final Extension extension : extensionsList){
28 if(extension.getIdentifier().equals(identifier)){
29 return extension;
33 return null;
36 /** {@inheritDoc} */
37 public List<Extension> getExtensions() {
38 return extensionsList;
41 /** {@inheritDoc} */
42 public boolean check() {
43 return true;