org.crsh.spring
Class SpringBootstrap

java.lang.Object
  extended by org.crsh.plugin.PluginLifeCycle
      extended by org.crsh.plugin.Embedded
          extended by org.crsh.spring.SpringBootstrap
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
SpringWebBootstrap

public class SpringBootstrap
extends Embedded
implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean


Field Summary
private  String cmdMountPointConfig
          .
private  String confMountPointConfig
          .
protected  HashMap<String,FSMountFactory<?>> drivers
          .
private  org.springframework.beans.factory.BeanFactory factory
          .
private  ClassLoader loader
          .
 
Fields inherited from class org.crsh.plugin.PluginLifeCycle
log
 
Constructor Summary
SpringBootstrap()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 String getCmdMountPointConfig()
           
 String getConfMountPointConfig()
           
protected  String getDefaultCmdMountPointConfig()
           
protected  String getDefaultConfMountPointConfig()
           
protected  Map<String,FSMountFactory<?>> getMountFactories()
           
protected  String resolveCmdMountPointConfig()
           
protected  String resolveConfMountPointConfig()
           
 void setBeanClassLoader(ClassLoader loader)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory factory)
           
 void setCmdMountPointConfig(String cmdMountPointConfig)
           
 void setConfMountPointConfig(String confMountPointConfig)
           
 
Methods inherited from class org.crsh.plugin.Embedded
create, createCommandFS, createConfFS, createFS, start
 
Methods inherited from class org.crsh.plugin.PluginLifeCycle
getConfig, getContext, setConfig, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loader

private ClassLoader loader
.


factory

private org.springframework.beans.factory.BeanFactory factory
.


drivers

protected final HashMap<String,FSMountFactory<?>> drivers
.


cmdMountPointConfig

private String cmdMountPointConfig
.


confMountPointConfig

private String confMountPointConfig
.

Constructor Detail

SpringBootstrap

public SpringBootstrap()
Method Detail

getCmdMountPointConfig

public String getCmdMountPointConfig()

setCmdMountPointConfig

public void setCmdMountPointConfig(String cmdMountPointConfig)

getConfMountPointConfig

public String getConfMountPointConfig()

setConfMountPointConfig

public void setConfMountPointConfig(String confMountPointConfig)

setBeanClassLoader

public void setBeanClassLoader(ClassLoader loader)
Specified by:
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory factory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getMountFactories

protected Map<String,FSMountFactory<?>> getMountFactories()
Overrides:
getMountFactories in class Embedded
Returns:
the registered drivers, by default an empty map is returned, subclasses can override to customize

resolveConfMountPointConfig

protected String resolveConfMountPointConfig()
Overrides:
resolveConfMountPointConfig in class Embedded

resolveCmdMountPointConfig

protected String resolveCmdMountPointConfig()
Overrides:
resolveCmdMountPointConfig in class Embedded

getDefaultCmdMountPointConfig

protected String getDefaultCmdMountPointConfig()

getDefaultConfMountPointConfig

protected String getDefaultConfMountPointConfig()

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception


Copyright © 2015 eXo Platform SAS. All Rights Reserved.