Skip to content

Commit 4fd6bd5

Browse files
committedDec 17, 2013
Update README
1 parent 3486822 commit 4fd6bd5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ Lastly, note that if you use Maven, you'll need to put `.cql` files and `.java`
3333

3434
````java
3535
try {
36-
// Get an instance of CassandraMutagen
37-
// Using Nu: CassandraMutagen mutagen = $(CassandraMutagen.class);
38-
CassandraMutagen mutagen = new CassandraMutagenImpl();
36+
// Get an instance of CassandraMutagen somehow (ideally inject it)
37+
CassandraMutagen mutagen = ... // e.g. new CassandraMutagenImpl();
3938

4039
// Initialize the list of mutations
4140
mutagen.initialize("my/cassandra/mutations");
@@ -64,7 +63,7 @@ catch (MutagenException e) {
6463
}
6564
````
6665

67-
At runtime (normally during app startup), get or create an instance of `CassandraMutagen`. (It's easy to use [Nu](https://github.com/congainc/conga-nu) to get an instance by calling `$(CassandraMutagen.class)`. Note that the instance returned by Nu is client-managed, i.e. not a singleton, so be sure to hold onto it as long as you're using it.)
66+
At runtime (normally during app startup), get or create an instance of `CassandraMutagen`. You can use Nu, Guice, or another dependency injection framework, or if you really want, you can create an instance the old fashioned way: `new CassandraMutageImpl()`.
6867

6968
Call `CassandraMutagen.initialize()` and provide the package name containing your mutations. You should see log messages listing all the resources that were found.
7069

0 commit comments

Comments
 (0)
Please sign in to comment.