protected void onContext(OmeroContext ctx) { IQuery q = (IQuery) ctx.getBean("queryService"); Advised aop = (Advised) q; System.out.println(Arrays.asList(aop.getAdvisors()));
protected void onContext(OmeroContext ctx) { ServiceFactory sf = new ServiceFactory( ctx ); IQuery q = sf.getQueryService(); assertTrue( Advised.class.isAssignableFrom( q.getClass() ));
    protected void onContext(OmeroContext ctx) {        IQuery q = (IQuery) ctx.getBean("queryService");        Advised aop = (Advised) q;        System.out.println(Arrays.asList(aop.getAdvisors()));    }