Java Doc for StaticApplicationContext.java in  » J2EE » spring-framework-2.0.6 » org » springframework » context » support » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.0.6 » org.springframework.context.support 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.context.support.AbstractApplicationContext
   org.springframework.context.support.GenericApplicationContext
      org.springframework.context.support.StaticApplicationContext

All known Subclasses:   org.springframework.web.context.support.StaticWebApplicationContext,  org.springframework.web.portlet.context.StaticPortletApplicationContext,
StaticApplicationContext
public class StaticApplicationContext extends GenericApplicationContext (Code)
org.springframework.context.ApplicationContext implementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources. Mainly useful for testing.
author:
   Rod Johnson
author:
   Juergen Hoeller
See Also:   StaticApplicationContext.registerSingleton
See Also:   StaticApplicationContext.registerPrototype
See Also:   StaticApplicationContext.registerBeanDefinition
See Also:   StaticApplicationContext.refresh



Constructor Summary
public  StaticApplicationContext()
     Create a new StaticApplicationContext.
public  StaticApplicationContext(ApplicationContext parent)
     Create a new StaticApplicationContext with the given parent.

Method Summary
public  voidaddMessage(String code, Locale locale, String defaultMessage)
     Associate the given message with the given code.
public  StaticMessageSourcegetStaticMessageSource()
     Return the internal StaticMessageSource used by this context.
public  voidregisterPrototype(String name, Class clazz)
     Register a prototype bean with the underlying bean factory.
public  voidregisterPrototype(String name, Class clazz, MutablePropertyValues pvs)
     Register a prototype bean with the underlying bean factory.
public  voidregisterSingleton(String name, Class clazz)
     Register a singleton bean with the underlying bean factory.
public  voidregisterSingleton(String name, Class clazz, MutablePropertyValues pvs)
     Register a singleton bean with the underlying bean factory.


Constructor Detail
StaticApplicationContext
public StaticApplicationContext() throws BeansException(Code)
Create a new StaticApplicationContext.
See Also:   StaticApplicationContext.registerSingleton
See Also:   StaticApplicationContext.registerPrototype
See Also:   StaticApplicationContext.registerBeanDefinition
See Also:   StaticApplicationContext.refresh



StaticApplicationContext
public StaticApplicationContext(ApplicationContext parent) throws BeansException(Code)
Create a new StaticApplicationContext with the given parent.
See Also:   StaticApplicationContext.registerSingleton
See Also:   StaticApplicationContext.registerPrototype
See Also:   StaticApplicationContext.registerBeanDefinition
See Also:   StaticApplicationContext.refresh




Method Detail
addMessage
public void addMessage(String code, Locale locale, String defaultMessage)(Code)
Associate the given message with the given code.
Parameters:
  code - lookup code
Parameters:
  locale - locale message should be found within
Parameters:
  defaultMessage - message associated with this lookup code
See Also:   StaticApplicationContext.getStaticMessageSource



getStaticMessageSource
public StaticMessageSource getStaticMessageSource()(Code)
Return the internal StaticMessageSource used by this context. Can be used to register messages on it.
See Also:   StaticApplicationContext.addMessage



registerPrototype
public void registerPrototype(String name, Class clazz) throws BeansException(Code)
Register a prototype bean with the underlying bean factory.

For more advanced needs, register with the underlying BeanFactory directly.
See Also:   StaticApplicationContext.getDefaultListableBeanFactory




registerPrototype
public void registerPrototype(String name, Class clazz, MutablePropertyValues pvs) throws BeansException(Code)
Register a prototype bean with the underlying bean factory.

For more advanced needs, register with the underlying BeanFactory directly.
See Also:   StaticApplicationContext.getDefaultListableBeanFactory




registerSingleton
public void registerSingleton(String name, Class clazz) throws BeansException(Code)
Register a singleton bean with the underlying bean factory.

For more advanced needs, register with the underlying BeanFactory directly.
See Also:   StaticApplicationContext.getDefaultListableBeanFactory




registerSingleton
public void registerSingleton(String name, Class clazz, MutablePropertyValues pvs) throws BeansException(Code)
Register a singleton bean with the underlying bean factory.

For more advanced needs, register with the underlying BeanFactory directly.
See Also:   StaticApplicationContext.getDefaultListableBeanFactory




Methods inherited from org.springframework.context.support.GenericApplicationContext
final protected void closeBeanFactory()(Code)(Java Doc)
public BeanDefinition getBeanDefinition(String beanName) throws BeansException(Code)(Java Doc)
final public ConfigurableListableBeanFactory getBeanFactory()(Code)(Java Doc)
final public DefaultListableBeanFactory getDefaultListableBeanFactory()(Code)(Java Doc)
public Resource getResource(String location)(Code)(Java Doc)
public Resource[] getResources(String locationPattern) throws IOException(Code)(Java Doc)
final protected void refreshBeanFactory() throws IllegalStateException(Code)(Java Doc)
public void registerAlias(String beanName, String alias) throws BeansException(Code)(Java Doc)
public void registerBeanDefinition(String beanName, BeanDefinition beanDefinition) throws BeansException(Code)(Java Doc)
public void setParent(ApplicationContext parent)(Code)(Java Doc)
public void setResourceLoader(ResourceLoader resourceLoader)(Code)(Java Doc)

Fields inherited from org.springframework.context.support.AbstractApplicationContext
final public static String APPLICATION_EVENT_MULTICASTER_BEAN_NAME(Code)(Java Doc)
final public static String MESSAGE_SOURCE_BEAN_NAME(Code)(Java Doc)
final protected Log logger(Code)(Java Doc)

Methods inherited from org.springframework.context.support.AbstractApplicationContext
public void addApplicationListener(ApplicationListener listener)(Code)(Java Doc)
public void addBeanFactoryPostProcessor(BeanFactoryPostProcessor beanFactoryPostProcessor)(Code)(Java Doc)
protected void addListener(ApplicationListener listener)(Code)(Java Doc)
public void close()(Code)(Java Doc)
abstract protected void closeBeanFactory()(Code)(Java Doc)
public boolean containsBean(String name)(Code)(Java Doc)
public boolean containsBeanDefinition(String name)(Code)(Java Doc)
public boolean containsLocalBean(String name)(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
protected void destroyBeans()(Code)(Java Doc)
protected void doClose()(Code)(Java Doc)
public String[] getAliases(String name)(Code)(Java Doc)
public List getApplicationListeners()(Code)(Java Doc)
public AutowireCapableBeanFactory getAutowireCapableBeanFactory() throws IllegalStateException(Code)(Java Doc)
public Object getBean(String name) throws BeansException(Code)(Java Doc)
public Object getBean(String name, Class requiredType) throws BeansException(Code)(Java Doc)
public int getBeanDefinitionCount()(Code)(Java Doc)
public String[] getBeanDefinitionNames()(Code)(Java Doc)
abstract public ConfigurableListableBeanFactory getBeanFactory() throws IllegalStateException(Code)(Java Doc)
public List getBeanFactoryPostProcessors()(Code)(Java Doc)
public String[] getBeanNamesForType(Class type)(Code)(Java Doc)
public String[] getBeanNamesForType(Class type, boolean includePrototypes, boolean allowEagerInit)(Code)(Java Doc)
public Map getBeansOfType(Class type) throws BeansException(Code)(Java Doc)
public Map getBeansOfType(Class type, boolean includePrototypes, boolean allowEagerInit) throws BeansException(Code)(Java Doc)
public String getDisplayName()(Code)(Java Doc)
protected BeanFactory getInternalParentBeanFactory()(Code)(Java Doc)
protected MessageSource getInternalParentMessageSource()(Code)(Java Doc)
protected Collection getLifecycleBeans()(Code)(Java Doc)
public String getMessage(String code, Object args, String defaultMessage, Locale locale)(Code)(Java Doc)
public String getMessage(String code, Object args, Locale locale) throws NoSuchMessageException(Code)(Java Doc)
public String getMessage(MessageSourceResolvable resolvable, Locale locale) throws NoSuchMessageException(Code)(Java Doc)
public ApplicationContext getParent()(Code)(Java Doc)
public BeanFactory getParentBeanFactory()(Code)(Java Doc)
protected ResourcePatternResolver getResourcePatternResolver()(Code)(Java Doc)
public Resource[] getResources(String locationPattern) throws IOException(Code)(Java Doc)
public long getStartupDate()(Code)(Java Doc)
public Class getType(String name) throws NoSuchBeanDefinitionException(Code)(Java Doc)
protected void initApplicationEventMulticaster()(Code)(Java Doc)
protected void initMessageSource()(Code)(Java Doc)
protected void invokeBeanFactoryPostProcessors(ConfigurableListableBeanFactory beanFactory)(Code)(Java Doc)
public boolean isActive()(Code)(Java Doc)
public boolean isPrototype(String name) throws NoSuchBeanDefinitionException(Code)(Java Doc)
public boolean isRunning()(Code)(Java Doc)
public boolean isSingleton(String name) throws NoSuchBeanDefinitionException(Code)(Java Doc)
public boolean isTypeMatch(String name, Class targetType) throws NoSuchBeanDefinitionException(Code)(Java Doc)
protected ConfigurableListableBeanFactory obtainFreshBeanFactory()(Code)(Java Doc)
protected void onClose()(Code)(Java Doc)
protected void onRefresh() throws BeansException(Code)(Java Doc)
protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)(Code)(Java Doc)
protected void prepareBeanFactory(ConfigurableListableBeanFactory beanFactory)(Code)(Java Doc)
protected void prepareRefresh()(Code)(Java Doc)
public void publishEvent(ApplicationEvent event)(Code)(Java Doc)
public void refresh() throws BeansException, IllegalStateException(Code)(Java Doc)
abstract protected void refreshBeanFactory() throws BeansException, IllegalStateException(Code)(Java Doc)
protected void registerBeanPostProcessors(ConfigurableListableBeanFactory beanFactory)(Code)(Java Doc)
protected void registerListeners()(Code)(Java Doc)
public void registerShutdownHook()(Code)(Java Doc)
public void setDisplayName(String displayName)(Code)(Java Doc)
public void setParent(ApplicationContext parent)(Code)(Java Doc)
public void start()(Code)(Java Doc)
public void stop()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.