Annotation Type UsesJPowerShell


@Retention(CLASS) @Target(METHOD) @Documented public @interface UsesJPowerShell
Indicates that the annotated component relies on the jPowerShell library for executing PowerShell commands.

The underlying jPowerShell implementation maintains shared internal state and global configuration, which may lead to unexpected behavior when used concurrently across multiple threads or executors.

Implications

  • Not safe for concurrent use
  • May throw runtime exceptions when accessed by multiple threads

For concurrent or multithreaded use cases, prefer methods that are annotated with IsolatedPowerShell

This annotation is for documentation purposes only and does not enforce or verify any behavior.

Since:
4.1.0
See Also: