ソースを参照

Added Maven usage snippet

Abhinav Sarkar 9年前
コミット
fc55ca72fb
1個のファイルの変更16行の追加4行の削除
  1. 16
    4
      README.mdown

+ 16
- 4
README.mdown ファイルの表示

@@ -3,6 +3,18 @@ SpelHelper provides additional functionalities to work with
3 3
 
4 4
 SpelHelper is available under GNU Lesser General Public License (GNU LGPL).
5 5
 
6
+**Maven Usage**
7
+
8
+To use SpelHelper with Maven, add the following snippet in the dependencies section of your project's POM file:
9
+
10
+    <dependency>
11
+      <groupId>net.abhinavsarkar</groupId>
12
+      <artifactId>SpelHelper</artifactId>
13
+      <version>1.1</version>
14
+    </dependency>
15
+
16
+**Functionalities**
17
+
6 18
 The addition functionalities provided are:
7 19
 
8 20
 1. Implicit methods
@@ -10,7 +22,7 @@ The addition functionalities provided are:
10 22
 3. Simplified extension functions
11 23
 4. Simplified constructors
12 24
 
13
-**Implicit Methods**
25
+_**Implicit methods**_
14 26
 
15 27
 Implicit methods allow one to registers methods with SpelHelper and attach
16 28
 them to particular classes. After that, when that method is called on an
@@ -27,7 +39,7 @@ So when an expression like `"#list(1,4,2).sorted()"` is evaluated, the
27 39
 first parameter and its return value is used in further evaluation of the
28 40
 expression.
29 41
 
30
-**Implicit Properties**
42
+_**Implicit properties**_
31 43
 
32 44
 Implicit properties allow one to treat no argument methods of an object
33 45
 as properties of the object. SpelHelper intercepts the property resolution
@@ -42,7 +54,7 @@ the same value as the last example.
42 54
 Implicit property resolution considers both the actual methods of the object
43 55
 and the implicit methods registered on the object's class.
44 56
 
45
-**Simplified extension functions**
57
+_**Simplified extension functions**_
46 58
 
47 59
 SpEL [allows][2] to register extension function on the context by providing a
48 60
 name and a java.lang.reflect.Method object. SpelHelper simplifies this by taking a class
@@ -54,7 +66,7 @@ registered by SpelHelper. Hence the method [ExtensionFunctions#list(Object...)][
54 66
 can be called from inside a SpEL expression using the function call syntax:
55 67
 `"#list(1,2,3)`".
56 68
 
57
-**Simplified constructors**
69
+_**Simplified constructors**_
58 70
 
59 71
 SpEL [allows][3] calling constructors from inside a SpEL expression using the
60 72
 `new` operator. But they have to be called with their full name like:

読み込み中…
キャンセル
保存