protected Object getAspectInstance(ClassType classType){
Object result = singletonAspects.get(classType);
if (result == null){
Aspect annotation = classType.getAnnotation(Aspect.class);
if (annotation != null){
if ((annotation.value() == "") || ("singleton".equalsIgnoreCase(annotation.value().toString()))){
result = classType.findConstructor(new String[]{}).newInstance();
singletonAspects.put(classType, result);
}
else
throw new RuntimeException("Now just support singleton aspect.");