---
title: "NFIBackendFactory"
description: "Service interface for languages that implement a backend for the Truffle NFI."
kind: "interface"
id: "com.oracle.truffle.nfi.backend.spi.NFIBackendFactory"
module: "truffle-nfi"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/truffle-nfi/com/oracle/truffle/nfi/backend/spi/NFIBackendFactory.html"
---

# ◇ NFIBackendFactory

[truffle-nfi](../../../../../../index.md) › [com.oracle.truffle.nfi.backend.spi](index.md) · Every page: [llms.txt](../../../../../../llms.txt)

Interface in [`com.oracle.truffle.nfi.backend.spi`](index.md).

```java
public interface NFIBackendFactory
```

Service interface for languages that implement a backend for the Truffle NFI.

## Methods

### getBackendId()
<a id="getBackendId()"></a>`String getBackendId()`. Provides the backend id. NFI backends can be selected by using the "with \<id\>" syntax. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendFactory.html#getBackendId()`

### createBackend(ContextThreadLocal)
<a id="createBackend(com.oracle.truffle.api.ContextThreadLocal)"></a>`NFIBackend createBackend(ContextThreadLocal<NFIState> state)`. Create an instance of an `NFIBackend`. Cite: `com/oracle/truffle/nfi/backend/spi/NFIBackendFactory.html#createBackend(com.oracle.truffle.api.ContextThreadLocal)`
