Cleans up page about Beans

Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/9fce8687
Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/9fce8687
Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/9fce8687

Branch: refs/heads/master
Commit: 9fce8687687d14833114dc9fc2d557eecded857b
Parents: f6bd386
Author: Lukasz Lenart <lukasz.len...@gmail.com>
Authored: Fri Jul 21 14:37:48 2017 +0200
Committer: Lukasz Lenart <lukasz.len...@gmail.com>
Committed: Fri Jul 21 14:37:48 2017 +0200

----------------------------------------------------------------------
 source/core-developers/bean-configuration.md | 51 ++++++++---------------
 1 file changed, 17 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-site/blob/9fce8687/source/core-developers/bean-configuration.md
----------------------------------------------------------------------
diff --git a/source/core-developers/bean-configuration.md 
b/source/core-developers/bean-configuration.md
index cef07d4..8a0436d 100644
--- a/source/core-developers/bean-configuration.md
+++ b/source/core-developers/bean-configuration.md
@@ -5,36 +5,25 @@ title: Bean Configuration
 
 # Bean Configuration
 
-Internally, the framework uses its own _dependency injection_  container\. The 
container loads key framework objects, so that any piece of the framework can 
be replaced, extended, or removed in a standard, consistent way\. _Plugins_ , 
in particular, leverage this capability to extend the framework to provide 
support for third\-party libraries like _Spring_  or _Sitemesh_ \.  
+Internally, the framework uses its own _dependency injection_  container. The 
container loads key framework objects, 
+so that any piece of the framework can be replaced, extended, or removed in a 
standard, consistent way. _Plugins_ , 
+in particular, leverage this capability to extend the framework to provide 
support for third\-party libraries like 
+_Spring_  or _Sitemesh_.  
 
- (ok)  Most applications won't need to extend the Bean Configuration\. 
+> Most applications won't need to extend the Bean Configuration. 
 
-#####Beans#####
+## Beans
 
-The bean element has one required attribute, 
+The bean element has one required attribute, `class`, which specifies the Java 
class to be created or manipulated.
+A bean can either 
+1 be created by the framework's container and injected into internal framework 
objects, or
+2 have values injected to its static methods
 
-~~~~~~~
-class
-~~~~~~~
-, which specifies the Java class to be created or manipulated\.  A bean can 
either 
+The first use, object injection, is generally accompanied by the `type` 
attribute, which tells the container which 
+interface this object implements.  
 
-1. be created by the framework's container and injected into internal 
framework objects, or
-
-2. have values injected to its static methods
-
-The first use, object injection, is generally accompanied by the 
-
-~~~~~~~
-type
-~~~~~~~
- attribute, which tells the container which interface this object implements\. 
 
-
-The second use, value injection, is good for allowing objects not created by 
the container to receive framework constants\. Objects using value inject must 
define the  the 
-
-~~~~~~~
-static
-~~~~~~~
- attribute\.
+The second use, value injection, is good for allowing objects not created by 
the container to receive framework 
+constants. Objects using value inject must define the `static` attribute.
 
 | Attribute | Required | Description |
 |-----------|----------|-------------|
@@ -45,19 +34,13 @@ static
 | static | no | whether to inject static methods or not; shouldn't be true 
when the type is specified |
 | optional | no | whether the bean is optional or not |
 
-__Sample usage__
-
-**Bean Example (struts\.xml)**
-
-
-~~~~~~~
+**Bean Example (struts.xml)**
 
+```xml
 <struts>
 
   <bean type="com.opensymphony.xwork2.ObjectFactory" name="myfactory" 
class="com.company.myapp.MyObjectFactory" />
-  
   ... 
 
 </struts>
-
-~~~~~~~
\ No newline at end of file
+```

Reply via email to