Add Source Code Linter Pipeline
This commit is contained in:
parent
0d0e7140c4
commit
d252f6ef50
313 changed files with 36277 additions and 0 deletions
19
screwdriver-3.5.6/box/snippets/java/GenericComponent.java
Normal file
19
screwdriver-3.5.6/box/snippets/java/GenericComponent.java
Normal file
|
@ -0,0 +1,19 @@
|
|||
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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue