ISE-ComProg-After-Midterm/screwdriver-3.5.6/box/snippets/java/GenericComponent.java

19 lines
508 B
Java
Raw Normal View History

2020-10-29 09:38:56 +00:00
package +zoccolo+.web.controller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
public class GenericComponent {
protected final Log logger = LogFactory.getLog(this.getClass());
@Autowired
public ApplicationContext context;
public String getMessage(String key, Object ...variables) {
return context.getMessage(key, variables, null);
}
}