001 package com.khubla.pragmatach.framework.plugin; 002 003 import com.khubla.pragmatach.framework.api.PluginContext; 004 import com.khubla.pragmatach.framework.api.PragmatachException; 005 import com.khubla.pragmatach.framework.resourceloader.ResourceLoader; 006 007 /** 008 * @author tome 009 */ 010 public class PluginContextImpl implements PluginContext { 011 /** 012 * resource loader 013 */ 014 private final ResourceLoader resourceLoader; 015 016 /** 017 * ctor 018 */ 019 public PluginContextImpl(ResourceLoader resourceLoader) { 020 this.resourceLoader = resourceLoader; 021 } 022 023 @Override 024 public ResourceLoader getResourceLoader() throws PragmatachException { 025 return resourceLoader; 026 } 027 }