Glue code ( English glue code - gluing code ) is a program code that serves exclusively for “gluing” different parts of the code, and at the same time does not implement any other applied function by itself.
Such code is often used to interact with ready-made libraries or programs, such as in external function interfaces ( FFI ) like JNI or SWIG , or, for example, when comparing programming language objects with database objects using object-relational mapping , or when integrating two or more finished software products.