My Requirement is like getting different images from logo(out of the box) component.It have design_dialog.
I want to disaply different images for non logged in user and logged in user..
Can any one please help me on this
You can override foundation logo component and apply your logic in JSP and load image based on your conditions.
Have you looked at the teaser component? This can easily be achieved without having to write code. You can create Experiences based on segment criteria. These segments could be logged on vs anonymous users. http://dev.day.com/docs/en/cq/current/wcm/campaigns.html
Technically you are right but practically you would not use teaser component for content delivery based on user segment.