in src/java/org/apache/turbine/annotation/AnnotationProcessor.java [328:365]
private static ServiceManager processMethods(Object object, ServiceManager manager, Class<?> clazz, boolean isTurbineService) throws TurbineException {
Method[] methods = clazz.getMethods();
for (Method method : methods)
{
Annotation[] annotations = getAnnotations(method);
for (Annotation a : annotations)
{
if (a instanceof TurbineService)
{
if (manager == null)
{
manager = TurbineServices.getInstance();
}
injectTurbineService(object, manager, method, (TurbineService) a);
}
}
if (isTurbineService)
{
if (manager == null)
{
manager = TurbineServices.getInstance();
}
Class<?>[] classes = method.getParameterTypes();
for (Class<?> c : classes)
{
if ( c.isAnnotationPresent(TurbineService.class)) {
TurbineService service = c.getAnnotation(TurbineService.class);
log.debug("retrieved implicit service in Turbien service: "+ service);
injectTurbineService(object, manager, method, service);
}
}
}
}
return manager;
}