net.corda.core.protocols / ProtocolLogicRefFactory / createKotlin

# createKotlin

`fun createKotlin(protocolLogicClassName: String, args: Map<String, Any?>, attachments: List<SecureHash> = emptyList()): ProtocolLogicRef`

Create a ProtocolLogicRef for the Kotlin primary constructor of a named ProtocolLogic

`fun createKotlin(type: Class<out ProtocolLogic<*>>, args: Map<String, Any?>): ProtocolLogicRef`

Create a ProtocolLogicRef by trying to find a Kotlin constructor that matches the given args.

TODO: Rethink language specific naming.