View Javadoc
1   package org.exoplatform.services.wcm.extensions.publication.context;
2   
3   import org.exoplatform.container.component.BaseComponentPlugin;
4   import org.exoplatform.container.xml.InitParams;
5   import org.exoplatform.container.xml.ObjectParameter;
6   import org.exoplatform.services.wcm.extensions.publication.context.impl.ContextConfig;
7   /**
8    * Created by The eXo Platform MEA Author :
9    * haikel.thamri@exoplatform.com
10   */
11  public class ContextPlugin extends BaseComponentPlugin {
12      private ContextConfig contextConfig;
13  
14      public ContextPlugin(InitParams params) {
15    ObjectParameter param = params.getObjectParam("contexts");
16  
17    if (param != null) {
18        contextConfig = (ContextConfig) param.getObject();
19    }
20      }
21  
22      public ContextConfig getContextConfig() {
23    return contextConfig;
24      }
25  
26      public void setContextConfig(ContextConfig contextConfig) {
27    this.contextConfig = contextConfig;
28      }
29  
30  }