# Uses of Interface
org.kie.api.runtime.Environment

Packages that use Environment
Package
Description
org.kie.api
Base KIE API classes.
org.kie.api.marshalling
Marshalling classes are used to marshall and unmarshal StatefulKieSessions
org.kie.api.persistence.jpa
org.kie.api.runtime
The runtime engine classes, including KieSession and StatelessKieSession.

- ## Uses of Environment in org.kie.api

  Methods in org.kie.api that return Environment
  Modifier and Type
  Method
  Description
  `Environment`
  KieServices.`newEnvironment()`
  Instantiate and return an Environment
  Methods in org.kie.api with parameters of type Environment
  Modifier and Type
  Method
  Description
  `KieSession`
  KieBase.`newKieSession(KieSessionConfiguration conf, Environment environment)`
  Creates a new `KieSession` using the given session configuration and/or environment.

- ## Uses of Environment in org.kie.api.marshalling

  Methods in org.kie.api.marshalling with parameters of type Environment
  Modifier and Type
  Method
  Description
  `KieSession`
  Marshaller.`unmarshall(InputStream stream, KieSessionConfiguration config, Environment environment)`
  Creates KieSession using the given KieSessionConfiguration and Environment.

- ## Uses of Environment in org.kie.api.persistence.jpa

  Methods in org.kie.api.persistence.jpa with parameters of type Environment
  Modifier and Type
  Method
  Description
  `KieSession`
  KieStoreServices.`loadKieSession(int id, KieBase kbase, KieSessionConfiguration configuration, Environment environment)`
  Deprecated.
  `KieSession`
  KieStoreServices.`loadKieSession(Long id, KieBase kbase, KieSessionConfiguration configuration, Environment environment)`
  `KieSession`
  KieStoreServices.`newKieSession(KieBase kbase, KieSessionConfiguration configuration, Environment environment)`

- ## Uses of Environment in org.kie.api.runtime

  Methods in org.kie.api.runtime that return Environment
  Modifier and Type
  Method
  Description
  `Environment`
  KieRuntime.`getEnvironment()`
  Methods in org.kie.api.runtime with parameters of type Environment
  Modifier and Type
  Method
  Description
  `KieSession`
  KieContainer.`newKieSession(String kSessionName, Environment environment)`
  Creates the KieSession with the given name for this KieContainer using the given Environment
  `KieSession`
  KieContainer.`newKieSession(String kSessionName, Environment environment, KieSessionConfiguration conf)`
  Creates the KieSession with the given name for this KieContainer using the given Environment and configuration
  `KieSession`
  KieContainer.`newKieSession(Environment environment)`
  Creates the default `KieSession` for this KieContainer using the given Environment
  `KieSession`
  KieContainer.`newKieSession(Environment environment, KieSessionConfiguration conf)`
  Creates the default KieSession for this KieContainer with the given configuration and Environment
  `void`
  Environment.`setDelegate(Environment delegate)`