Skip to content

Commit 33ed567

Browse files
joe-alewineJoe Alewine
authored andcommitted
[FAB-12020] Update chaincode sections with Java cc
Add references to java in sections on chaincode languages. Change-Id: I1922c23a5506baa1c50e79c9fbbd6fb1f57963cc Signed-off-by: joe-alewine <Joe.Alewine@ibm.com>
1 parent 5e60f9e commit 33ed567

File tree

4 files changed

+22
-23
lines changed

4 files changed

+22
-23
lines changed

docs/source/Fabric-FAQ.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,7 @@ Chaincode (Smart Contracts and Digital Assets)
158158

159159
:Answer:
160160
Chaincode can be written in any programming language and executed in
161-
containers. The first fully supported chaincode language is Golang.
162-
163-
Support for additional languages and the development of a templating language
164-
have been discussed, and more details will be released in the near future.
161+
containers. Currently, Golang, node.js and java chaincode are supported.
165162

166163
It is also possible to build Hyperledger Fabric applications using
167164
`Hyperledger Composer <https://hyperledger.github.io/composer/>`__.

docs/source/chaincode.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ What is Chaincode?
55
------------------
66

77
Chaincode is a program, written in `Go <https://golang.org>`_, `node.js <https://nodejs.org>`_,
8-
and eventually in other programming languages such as Java, that implements a
9-
prescribed interface. Chaincode runs in a secured Docker container isolated from
10-
the endorsing peer process. Chaincode initializes and manages ledger state
11-
through transactions submitted by applications.
8+
or `Java <https://java.com/en/>`_ that implements a prescribed interface.
9+
Chaincode runs in a secured Docker container isolated from the endorsing peer
10+
process. Chaincode initializes and manages ledger state through transactions
11+
submitted by applications.
1212

1313
A chaincode typically handles business logic agreed to by members of the
1414
network, so it may be considered as a "smart contract". State created by a

docs/source/chaincode4ade.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ What is Chaincode?
55
------------------
66

77
Chaincode is a program, written in `Go <https://golang.org>`_, `node.js <https://nodejs.org>`_,
8-
that implements a prescribed interface. Eventually, other programming languages such as Java,
9-
will be supported. Chaincode runs in a secured Docker container isolated from
10-
the endorsing peer process. Chaincode initializes and manages the ledger state
11-
through transactions submitted by applications.
8+
or `Java <https://java.com/en/>`_ that implements a prescribed interface.
9+
Chaincode runs in a secured Docker container isolated from the endorsing peer
10+
process. Chaincode initializes and manages the ledger state through transactions
11+
submitted by applications.
1212

1313
A chaincode typically handles business logic agreed to by members of the
1414
network, so it similar to a "smart contract". A chaincode can be invoked to update or query
@@ -40,7 +40,8 @@ Chaincode API
4040
Every chaincode program must implement the ``Chaincode`` interface:
4141

4242
- `Go <https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#Chaincode>`__
43-
- `node.js <https://fabric-shim.github.io/ChaincodeInterface.html>`__
43+
- `node.js <https://fabric-shim.github.io/fabric-shim.ChaincodeInterface.html>`__
44+
- `Java <https://fabric-chaincode-java.github.io/org/hyperledger/fabric/shim/Chaincode.html>`_
4445

4546
whose methods are called in response to received transactions.
4647
In particular the ``Init`` method is called when a
@@ -52,13 +53,14 @@ application state. The ``Invoke`` method is called in response to receiving an
5253
The other interface in the chaincode "shim" APIs is the ``ChaincodeStubInterface``:
5354

5455
- `Go <https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStubInterface>`__
55-
- `node.js <https://fabric-shim.github.io/ChaincodeStub.html>`__
56+
- `node.js <https://fabric-shim.github.io/fabric-shim.ChaincodeStub.html>`__
57+
- `Java <https://fabric-chaincode-java.github.io/org/hyperledger/fabric/shim/ChaincodeStub.html>`_
5658

5759
which is used to access and modify the ledger, and to make invocations between
5860
chaincodes.
5961

60-
In this tutorial, we will demonstrate the use of these APIs by implementing a
61-
simple chaincode application that manages simple "assets".
62+
In this tutorial using Go chaincode, we will demonstrate the use of these APIs
63+
by implementing a simple chaincode application that manages simple "assets".
6264

6365
.. _Simple Asset Chaincode:
6466

@@ -93,7 +95,7 @@ Housekeeping
9395

9496
First, let's start with some housekeeping. As with every chaincode, it implements the
9597
`Chaincode interface <https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#Chaincode>`_
96-
in particular, ``Init`` and ``Invoke`` functions. So, let's add the go import
98+
in particular, ``Init`` and ``Invoke`` functions. So, let's add the Go import
9799
statements for the necessary dependencies for our chaincode. We'll import the
98100
chaincode shim package and the
99101
`peer protobuf package <https://godoc.org/github.com/hyperledger/fabric/protos/peer>`_.

docs/source/chaincode4noah.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Chaincode for Operators
44
What is Chaincode?
55
------------------
66

7-
Chaincode is a program, written in `Go <https://golang.org>`_, and eventually
8-
in other programming languages such as Java, that implements a
9-
prescribed interface. Chaincode runs in a secured Docker container isolated from
10-
the endorsing peer process. Chaincode initializes and manages ledger state
11-
through transactions submitted by applications.
7+
Chaincode is a program, written in `Go <https://golang.org>`_, `node.js <https://nodejs.org>`_,
8+
or `Java <https://java.com/en/>`_ that implements a prescribed interface.
9+
Chaincode runs in a secured Docker container isolated from the endorsing peer
10+
process. Chaincode initializes and manages ledger state through transactions
11+
submitted by applications.
1212

1313
A chaincode typically handles business logic agreed to by members of the
1414
network, so it may be considered as a "smart contract". State created by a
@@ -24,7 +24,7 @@ instantiating and upgrading the chaincode as a function of the chaincode's
2424
operational lifecycle within a blockchain network.
2525

2626
Chaincode lifecycle
27-
--------------------
27+
-------------------
2828

2929
The Hyperledger Fabric API enables interaction with the various nodes
3030
in a blockchain network - the peers, orderers and MSPs - and it also allows

0 commit comments

Comments
 (0)