Browse Source

Document createEnvironment() methods

in AbstractApplicationContext and SpringContextResourceAdapter
pull/7/head
Chris Beams 14 years ago
parent
commit
9420bdc246
  1. 2
      org.springframework.context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java
  2. 5
      org.springframework.transaction/src/main/java/org/springframework/jca/context/SpringContextResourceAdapter.java

2
org.springframework.context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

@ -411,6 +411,8 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader @@ -411,6 +411,8 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
/**
* Create and return a new {@link DefaultEnvironment}.
* <p>Subclasses may override this method in order to supply
* a custom {@link ConfigurableEnvironment} implementation.
*/
protected ConfigurableEnvironment createEnvironment() {
return new DefaultEnvironment();

5
org.springframework.transaction/src/main/java/org/springframework/jca/context/SpringContextResourceAdapter.java

@ -144,10 +144,11 @@ public class SpringContextResourceAdapter implements ResourceAdapter { @@ -144,10 +144,11 @@ public class SpringContextResourceAdapter implements ResourceAdapter {
}
/**
* Return
* Return a new {@link DefaultEnvironment}.
* <p>Subclasses may override this method in order to supply
* a custom {@link ConfigurableEnvironment} implementation.
*/
protected ConfigurableEnvironment createEnvironment() {
// TODO: should actually return
return new DefaultEnvironment();
}

Loading…
Cancel
Save