java.lang.Object
com.aispect.core.engine.runtime.executor.unit.UnitEngine
All Implemented Interfaces:
AiUnitEngine

public class UnitEngine extends Object implements AiUnitEngine
Unit Agent Execution engine, belonging torunning phase (Runtime)Responsibilities.

from AgentInvocationCacheImpl middle obtained Handler List, configured according to annotations AiExecutePhase Route to the corresponding execution logic (preExecute / postExecute / onException / execute)。

  • Constructor Details

    • UnitEngine

      public UnitEngine()
  • Method Details

    • executeUnitAgents

      public Object executeUnitAgents(AiUnitAgentHandler<?,?>[] handlers, Object target, Method method, Object[] args, AiInvocationContext<Object> ctx) throws Throwable
      Description copied from interface: AiUnitEngine
      execution unit agent logic
      Specified by:
      executeUnitAgents in interface AiUnitEngine
      Parameters:
      handlers - Array of pre-instantiated proxy processors
      target - target object instance
      method - The original method that was called
      args - method parameters
      ctx - Context information for the current proxy call
      Returns:
      The final return result after orchestration execution
      Throws:
      Throwable - Any exceptions thrown during execution