private void startAgentContextAware(Object object) { if (object instanceof AgentContextAware) { try { ((AgentContextAware) object).start(this); } catch (Exception exception) { exception.printStackTrace(); } } }
private void stopAgentContextAware(Object object) { if (object instanceof AgentContextAware) { try { ((AgentContextAware) object).stop(); } catch (Exception exception) { exception.printStackTrace(); } } }
private void initAgentContextAware(Object object) { if (object instanceof AgentContextAware) { try { ((AgentContextAware) object).init(this); } catch (Exception exception) { exception.printStackTrace(); } } }
protected void stopHandler(Object handler) throws Exception { if (handler instanceof AgentContextAware) { ((AgentContextAware) handler).stop(); } }
protected void startHandler(Object handler, AgentContext agentContext) throws Exception { if (handler instanceof AgentContextAware) { ((AgentContextAware) handler).start(agentContext); } }