Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.osgi.application
Class FrameworkBootstrap

java.lang.Object
  extended by org.nuxeo.osgi.application.FrameworkBootstrap
All Implemented Interfaces:
LoaderConstants
Direct Known Subclasses:
DevFrameworkBootstrap

public class FrameworkBootstrap
extends Object
implements LoaderConstants

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from interface org.nuxeo.osgi.application.LoaderConstants
ARGS, BUNDLES, CONFIG_DIR, DATA_DIR, DEVMODE, FLUSH_CACHE, HOME_DIR, HOST_NAME, HOST_VERSION, LIBS, LOG_DIR, PREPROCESSING, SCAN_FOR_NESTED_JARS, TMP_DIR, WEB_DIR
 
Constructor Summary
FrameworkBootstrap(ClassLoader cl, File home)
           
FrameworkBootstrap(MutableClassLoader loader, File home)
           
 
Method Summary
static void copyFile(File src, File file)
           
static void copyToFile(InputStream in, File file)
           
static void copyTree(File src, File dst)
           
static void deleteAll(File file)
           
 Map<String,Object> env()
           
static File findFileStartingWidth(File dir, String prefix)
           
 ClassLoader getClassLoader()
           
 File getHome()
           
 MutableClassLoader getLoader()
           
 void initialize()
           
 String installBundle(File f)
           
 void setDevMode(String devMode)
           
 void setDoPreprocessing(boolean doPreprocessing)
           
 void setFlushCache(boolean flushCache)
           
 void setHostName(String value)
           
 void setHostVersion(String value)
           
 void setScanForNestedJars(boolean scanForNestedJars)
           
 void start()
           
 void stop()
           
 void uninstallBundle(String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameworkBootstrap

public FrameworkBootstrap(ClassLoader cl,
                          File home)
                   throws IOException
Throws:
IOException

FrameworkBootstrap

public FrameworkBootstrap(MutableClassLoader loader,
                          File home)
                   throws IOException
Throws:
IOException
Method Detail

setHostName

public void setHostName(String value)

setHostVersion

public void setHostVersion(String value)

setDoPreprocessing

public void setDoPreprocessing(boolean doPreprocessing)

setDevMode

public void setDevMode(String devMode)

setFlushCache

public void setFlushCache(boolean flushCache)

setScanForNestedJars

public void setScanForNestedJars(boolean scanForNestedJars)

env

public Map<String,Object> env()

getLoader

public MutableClassLoader getLoader()

getClassLoader

public ClassLoader getClassLoader()

getHome

public File getHome()

initialize

public void initialize()
                throws Exception
Throws:
Exception

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

installBundle

public String installBundle(File f)
                     throws Exception
Throws:
Exception

uninstallBundle

public void uninstallBundle(String name)
                     throws Exception
Throws:
Exception

deleteAll

public static void deleteAll(File file)

copyFile

public static void copyFile(File src,
                            File file)
                     throws IOException
Throws:
IOException

copyToFile

public static void copyToFile(InputStream in,
                              File file)
                       throws IOException
Throws:
IOException

findFileStartingWidth

public static File findFileStartingWidth(File dir,
                                         String prefix)

copyTree

public static void copyTree(File src,
                            File dst)
                     throws IOException
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.