|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.server.deployer.FileDeployer
A service which auto-deploys services within a recursive file system.
Constructor Summary | |
FileDeployer()
|
Method Summary | |
void |
afterPropertiesSet()
|
protected java.lang.ClassLoader |
createChildClassLoader(java.lang.String name,
java.io.File dir,
java.lang.ClassLoader parentClassLoader)
|
protected void |
createServiceForFile(java.lang.String name,
java.io.File file,
java.lang.ClassLoader classLoader,
org.springframework.context.ApplicationContext parentContext)
|
java.io.File |
getBaseDir()
Gets the base directory from which configuration locations are resolved. |
java.util.List |
getBeanFactoryPostProcessors()
Gets the BeanFactoryPostProcessors to apply to the configuration. |
protected java.lang.String |
getChildName(java.lang.String parentName,
java.io.File file)
|
java.lang.ClassLoader |
getClassLoader()
|
protected java.lang.String[] |
getFileNameOrder(java.util.Properties properties)
Extracts the file names from the properties file for the order in which things should be deployed |
java.lang.String[] |
getJarDirectoryNames()
|
java.util.List |
getXmlPreprocessors()
Gets the SpringXmlPreprocessors applied to the configuration. |
protected boolean |
isClassLoaderDirectory(java.io.File file)
|
boolean |
isShowIgnoredFiles()
|
protected boolean |
isSpringConfigFile(java.io.File file)
|
boolean |
isVerbose()
|
protected void |
processDirectory(java.lang.String parentName,
java.lang.ClassLoader classLoader,
org.springframework.context.ApplicationContext parentContext,
java.io.File directory)
|
void |
run()
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setBaseDir(java.io.File baseDir)
Sets the base directory from which configuration locations are resolved. |
void |
setBeanFactoryPostProcessors(java.util.List beanFactoryPostProcessors)
Sets the BeanFactoryPostProcessors to apply to the configuration. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
void |
setJarDirectoryNames(java.lang.String[] jarDirectoryNames)
Sets the names of the directories to be treated as folders of jars or class loader files. |
void |
setKernel(org.apache.xbean.kernel.Kernel kernel)
Sets the kernel in which configurations are loaded. |
void |
setShowIgnoredFiles(boolean showIgnoredFiles)
Sets whether or not ignored files should be logged as they are encountered. |
void |
setVerbose(boolean verbose)
Allows verbose logging to show what classpaths are being created |
void |
setXmlPreprocessors(java.util.List xmlPreprocessors)
Sets the SpringXmlPreprocessors applied to the configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileDeployer()
Method Detail |
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void run()
run
in interface java.lang.Runnable
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public void setKernel(org.apache.xbean.kernel.Kernel kernel)
kernel
- the kernel in which configurations are loadedpublic java.io.File getBaseDir()
public void setBaseDir(java.io.File baseDir)
baseDir
- the base directory from which configuration locations are
resolvedpublic java.util.List getXmlPreprocessors()
public void setXmlPreprocessors(java.util.List xmlPreprocessors)
xmlPreprocessors
- the SpringXmlPreprocessors applied to the configurationpublic java.util.List getBeanFactoryPostProcessors()
public void setBeanFactoryPostProcessors(java.util.List beanFactoryPostProcessors)
beanFactoryPostProcessors
- the BeanFactoryPostProcessors to apply to the configurationpublic boolean isVerbose()
public void setVerbose(boolean verbose)
public boolean isShowIgnoredFiles()
public void setShowIgnoredFiles(boolean showIgnoredFiles)
public java.lang.String[] getJarDirectoryNames()
public void setJarDirectoryNames(java.lang.String[] jarDirectoryNames)
protected void processDirectory(java.lang.String parentName, java.lang.ClassLoader classLoader, org.springframework.context.ApplicationContext parentContext, java.io.File directory) throws org.apache.xbean.kernel.ServiceAlreadyExistsException, org.apache.xbean.kernel.ServiceRegistrationException, org.springframework.beans.BeansException, java.io.IOException
org.apache.xbean.kernel.ServiceAlreadyExistsException
org.apache.xbean.kernel.ServiceRegistrationException
org.springframework.beans.BeansException
java.io.IOException
protected java.lang.ClassLoader createChildClassLoader(java.lang.String name, java.io.File dir, java.lang.ClassLoader parentClassLoader) throws java.net.MalformedURLException
java.net.MalformedURLException
protected void createServiceForFile(java.lang.String name, java.io.File file, java.lang.ClassLoader classLoader, org.springframework.context.ApplicationContext parentContext) throws org.apache.xbean.kernel.ServiceAlreadyExistsException, org.apache.xbean.kernel.ServiceRegistrationException, org.springframework.beans.BeansException, java.io.IOException
org.apache.xbean.kernel.ServiceAlreadyExistsException
org.apache.xbean.kernel.ServiceRegistrationException
org.springframework.beans.BeansException
java.io.IOException
protected boolean isClassLoaderDirectory(java.io.File file)
protected boolean isSpringConfigFile(java.io.File file)
protected java.lang.String[] getFileNameOrder(java.util.Properties properties)
protected java.lang.String getChildName(java.lang.String parentName, java.io.File file)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |