templates.mws.Component.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moab-sdk Show documentation
Show all versions of moab-sdk Show documentation
Gradle plugins comprising a plugin SDK for Moab.
<%=packageName ? 'package '+packageName : '' %>
import org.springframework.stereotype.Component
import org.apache.commons.logging.LogFactory
import org.apache.commons.logging.Log
// Uncomment and use to do annotations by name (recommended)
//import javax.annotation.Resource
// Uncomment and use to do injections by type
//import org.springframework.beans.factory.annotation.Autowired
@Component
class <%=className%> {
private static Log log = LogFactory.getLog("plugins."+this.name)
// Inject another component, translator, or plugin
// @Resource(name="myTranslator")
// MyTranslator myTranslator
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy