org.lenskit.inject

## Annotation Type Transient

• @Attribute
@Target(value={METHOD,FIELD,PARAMETER})
@Retention(value=RUNTIME)
public @interface Transient

Mark a component dependency as transient. This is only done on provider/builder components, and means that the specified dependency is only needed while the output component is being built, but the final component does not depend on the transient dependency.

Example: a provider that reads the ratings from the DAO to compute their average and build a component around that average has a transient dependency on the DAO.

Compatibility
Public