|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.server.deployer.FileDeployer
public class FileDeployer
A service which auto-deploys services within a recursive file system.
Constructor Summary | |
---|---|
FileDeployer()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected ClassLoader |
createChildClassLoader(String name,
File dir,
ClassLoader parentClassLoader)
|
protected void |
createServiceForFile(String name,
File file,
ClassLoader classLoader,
org.springframework.context.ApplicationContext parentContext)
|
File |
getBaseDir()
Gets the base directory from which configuration locations are resolved. |
List |
getBeanFactoryPostProcessors()
Gets the BeanFactoryPostProcessors to apply to the configuration. |
protected String |
getChildName(String parentName,
File file)
|
ClassLoader |
getClassLoader()
|
protected String[] |
getFileNameOrder(Properties properties)
Extracts the file names from the properties file for the order in which things should be deployed |
String[] |
getJarDirectoryNames()
|
List |
getXmlPreprocessors()
Gets the SpringXmlPreprocessors applied to the configuration. |
protected boolean |
isClassLoaderDirectory(File file)
|
boolean |
isShowIgnoredFiles()
|
protected boolean |
isSpringConfigFile(File file)
|
boolean |
isVerbose()
|
protected void |
processDirectory(String parentName,
ClassLoader classLoader,
org.springframework.context.ApplicationContext parentContext,
File directory)
|
void |
run()
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setBaseDir(File baseDir)
Sets the base directory from which configuration locations are resolved. |
void |
setBeanFactoryPostProcessors(List beanFactoryPostProcessors)
Sets the BeanFactoryPostProcessors to apply to the configuration. |
void |
setClassLoader(ClassLoader classLoader)
|
void |
setJarDirectoryNames(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(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 Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
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 Runnable
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public void setKernel(org.apache.xbean.kernel.Kernel kernel)
kernel
- the kernel in which configurations are loadedpublic File getBaseDir()
public void setBaseDir(File baseDir)
baseDir
- the base directory from which configuration locations are
resolvedpublic List getXmlPreprocessors()
public void setXmlPreprocessors(List xmlPreprocessors)
xmlPreprocessors
- the SpringXmlPreprocessors applied to the configurationpublic List getBeanFactoryPostProcessors()
public void setBeanFactoryPostProcessors(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 String[] getJarDirectoryNames()
public void setJarDirectoryNames(String[] jarDirectoryNames)
protected void processDirectory(String parentName, ClassLoader classLoader, org.springframework.context.ApplicationContext parentContext, File directory) throws org.apache.xbean.kernel.ServiceAlreadyExistsException, org.apache.xbean.kernel.ServiceRegistrationException, org.springframework.beans.BeansException, IOException
org.apache.xbean.kernel.ServiceAlreadyExistsException
org.apache.xbean.kernel.ServiceRegistrationException
org.springframework.beans.BeansException
IOException
protected ClassLoader createChildClassLoader(String name, File dir, ClassLoader parentClassLoader) throws MalformedURLException
MalformedURLException
protected void createServiceForFile(String name, File file, ClassLoader classLoader, org.springframework.context.ApplicationContext parentContext) throws org.apache.xbean.kernel.ServiceAlreadyExistsException, org.apache.xbean.kernel.ServiceRegistrationException, org.springframework.beans.BeansException, IOException
org.apache.xbean.kernel.ServiceAlreadyExistsException
org.apache.xbean.kernel.ServiceRegistrationException
org.springframework.beans.BeansException
IOException
protected boolean isClassLoaderDirectory(File file)
protected boolean isSpringConfigFile(File file)
protected String[] getFileNameOrder(Properties properties)
protected String getChildName(String parentName, File file)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |