return getClass().getSimpleName() + "[actor=" + actorId + ",type=" + type + "]";
}
public static JoinPoint createJoinPoint(Class annotatedClass, JoinPointType type)
{
TestActor testActorAnnotation = ((AnnotatedElement)annotatedClass).getAnnotation(TestActor.class);
//
if (testActorAnnotation == null)
{
throw new IllegalStateException("No annotation @TestPortlet found on portlet class " + annotatedClass.getName());
}
//
String actorId = testActorAnnotation.id();
//
return new JoinPoint(actorId, type);
}