Author: julien_viet
Date: 2009-12-15 15:37:59 -0500 (Tue, 15 Dec 2009)
New Revision: 1077
Removed:
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/RootContainerBootstrap.java
Log:
remove useless class
Deleted:
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/RootContainerBootstrap.java
===================================================================
---
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/RootContainerBootstrap.java 2009-12-15
20:31:17 UTC (rev 1076)
+++
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/RootContainerBootstrap.java 2009-12-15
20:37:59 UTC (rev 1077)
@@ -1,52 +0,0 @@
-/*
- * Copyright (C) 2003-2007 eXo Platform SAS.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Affero General Public License
- * as published by the Free Software Foundation; either version 3
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not,
see<http://www.gnu.org/licenses/>.
- */
-package org.exoplatform.container;
-
-import org.exoplatform.container.configuration.ConfigurationManager;
-import org.exoplatform.container.configuration.ConfigurationManagerImpl;
-
-import java.net.URL;
-import java.util.Arrays;
-import java.util.HashSet;
-
-/**
- * @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
- * @version $Revision$
- */
-public class RootContainerBootstrap
-{
-
- public static RootContainer bootstrap(URL configurationURL, String... profiles)
- {
- try
- {
- RootContainer container = new RootContainer();
- ConfigurationManager manager = new ConfigurationManagerImpl(new
HashSet<String>(Arrays.asList(profiles)));
- manager.addConfiguration(configurationURL);
- container.registerComponentInstance(ConfigurationManager.class, manager);
- container.initContainer();
- container.start();
- return container;
- }
- catch (Exception e)
- {
- AssertionError err = new AssertionError("Could not start root
container");
- err.initCause(e);
- throw err;
- }
- }
-}