POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE PAGE! On 22 Mar 2006 07:35, stewart.cambridge wrote: >Where you do this: > Class objectClass = obj.getClass(); > String className = objectClass.getName(); > // Just get the class name without the package structure > String[] tokens = className.split("\\."); > int lastToken = tokens.length - 1; > className = tokens[lastToken]; >You just do this: > Class objectClass = obj.getClass(); > String className = objectClass.getSimpleName(); Hi Can you please tell me how can we create our own components and set them to the properties and check them while auditing just like in the above example code if(interfaces[i].getName().equals ("com.mycompany.model.audit.Component")) How can we write "com.mycompany.model.audit.Component" class and set it to the property. My requirement is to audit to audit only the selective fields. Thanks in advance Raghavender