You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2015/04/16 12:45:58 UTC

[2/2] tomee git commit: Grammar corrections

Grammar corrections


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/e76456ca
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/e76456ca
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/e76456ca

Branch: refs/heads/master
Commit: e76456cabf14d4d4a943c5dd0e5791fdd3a9192c
Parents: f72c89a
Author: Jonathan Gallimore <jo...@jrg.me.uk>
Authored: Thu Apr 16 00:02:44 2015 +0100
Committer: Jonathan Gallimore <jo...@jrg.me.uk>
Committed: Thu Apr 16 11:05:28 2015 +0100

----------------------------------------------------------------------
 examples/resources-jmx-example/README.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/e76456ca/examples/resources-jmx-example/README.md
----------------------------------------------------------------------
diff --git a/examples/resources-jmx-example/README.md b/examples/resources-jmx-example/README.md
index 595d331..b49678b 100644
--- a/examples/resources-jmx-example/README.md
+++ b/examples/resources-jmx-example/README.md
@@ -6,7 +6,7 @@ In addition to this, you can also define a `create` method on either the resourc
 
 ## Resource
 
-Custom resource can be defined using very simple Java classes. In this particular instance, as the application also wants to register this resource as an MBean, the resource class needs to follow the MBean specification.
+Custom resources can be defined using very simple Java classes. In this particular instance, as the application also wants to register this resource as an MBean, the resource class needs to follow the MBean specification.
 
 	public class Hello implements HelloMBean {
 
@@ -243,7 +243,7 @@ The following properties can be used to change this behavior.
 
 * Lazy
 
-This is a boolean value, which when true, creates a proxy that defers the actual instantiation of the resource until the first time it is looked up from JNDI. This can be useful if the resource's classpath until the application is started (see below), or to improve startup time by not fully initializing resources that might not be used.
+This is a boolean value, which when true, creates a proxy that defers the actual instantiation of the resource until the first time it is looked up from JNDI. This can be useful if the resource requires the application classpath, or to improve startup time by not fully initializing resources that might not be used.
 
 * UseAppClassLoader 
 
@@ -255,8 +255,6 @@ This boolean setting forces a resource created with the Lazy property to be inst
 
 By default, all of these settings are `false`, unless TomEE encounters a custom application resource that cannot be instantiated until the application has started. In this case, it will set these three flags to `true`, unless the `Lazy` flag has been explicitly set.
 
-By default, if TomEE encounters a custom application resource that cannot be instantiated until the application has started, it will set these three flags to `true`, unless the `Lazy` flag has been explicitly set.
-
 # PostConstruct / PreDestroy
 
 As an alternative to using a factory method, you can use @PostConstruct and @PreDestroy methods within your resource class (note that you cannot use this within a factory class) to manage any additional creation or cleanup activities. TomEE will automatically call these methods when the application is started and destroyed. Using @PostConstruct will effectively force a lazily loaded resource to be instantiated when the application is starting - in the same way that the `InitializeAfterDeployment` property does.