View Javadoc
1   /*
2    * Copyright (C) 2003-2015 eXo Platform SAS.
3    *
4    * This file is part of UXPaaS :: PLF :: Services.
5    *
6    * UXPaaS :: PLF :: Services is free software; you can redistribute it and/or modify it
7    * under the terms of the GNU Lesser General Public License as
8    * published by the Free Software Foundation; either version 3 of
9    * the License, or (at your option) any later version.
10   *
11   * UXPaaS :: PLF :: Services software is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14   * Lesser General Public License for more details.
15   *
16   * You should have received a copy of the GNU Lesser General Public
17   * License along with UXPaaS :: PLF :: Services; if not, write to the Free
18   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19   * 02110-1301 USA, or see <http://www.gnu.org/licenses/>.
20   */
21  package org.exoplatform.wiki.jpa.mock;
22  
23  import org.exoplatform.services.naming.InitialContextInitializer;
24  import org.picocontainer.Startable;
25  
26  /**
27   * Dummy Startable component to make sure the datasource is bound before others components use it.
28   */
29  public class DummyDependantComponent implements Startable {
30  
31    private final InitialContextInitializer jndiInitializer;
32  
33    public DummyDependantComponent(InitialContextInitializer jndiInitializer) {
34      this.jndiInitializer = jndiInitializer;
35    }
36  
37    @Override
38    public void start() {
39      // nothing
40    }
41  
42    @Override
43    public void stop() {
44      // nothing
45    }
46  
47  }