1 package cz
.cvut
.promod
.services
.extensionService
;
3 import cz
.cvut
.promod
.plugin
.extension
.Extension
;
8 * ProMod, master thesis project
9 * User: Petr Zverina, petr.zverina@gmail.com
10 * Date: 1:41:08, 26.1.2010
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
;
26 public Extension
getExtension(final String identifier
) {
27 for(final Extension extension
: extensionsList
){
28 if(extension
.getIdentifier().equals(identifier
)){
37 public List
<Extension
> getExtensions() {
38 return extensionsList
;
42 public boolean check() {