i have two impl packages (contains implementation for service/dao methods)
and i want when creating any new class in this package
the following line gets added to class by default (log instantiation):
Log log = LogFactory.getLog(getClass());
another thing is that i want when adding unimplemented method in the impl package for dao is to add the spring annotation
@Transactionl
any ideas how to accomplish those things in eclipse (i am using Eclipse Helios 3.6).
I don’t think it’s possible to have a specific template for a given package.
Some notes, though :
getClass(), the actual subclass name would be used.