org.ops4j.pax.wicket.internal
Interface ContentTrackingCallback

All Known Implementing Classes:
AbstractAggregatedSource, FloorAggregatedSource, RootContentAggregator

public interface ContentTrackingCallback

ContentTrackingCallback implementors handle add and removal of ContentSource.

Since:
1.0.0
Author:
Edward Yakop

Method Summary
 void addContent(java.lang.String wicketId, ContentSource content)
          The specified content is added with the specified wicketId id.
 boolean removeContent(java.lang.String wicketId, ContentSource content)
          The specified content is not available with the specified wicketId id.
 

Method Detail

addContent

void addContent(java.lang.String wicketId,
                ContentSource content)
                throws java.lang.IllegalArgumentException
The specified content is added with the specified wicketId id.

Parameters:
wicketId - The wicket identifier. This argument must not be null or empty.
content - The content. This argument must not be null.
Throws:
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
Since:
1.0.0

removeContent

boolean removeContent(java.lang.String wicketId,
                      ContentSource content)
The specified content is not available with the specified wicketId id.

Parameters:
wicketId - The wicket identifier. This argument must not be null or empty.
content - The content. This argument must not be null.
Returns:
A boolean indicator whether removal is successfull.
Throws:
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
Since:
1.0.0


Copyright © 2008. All Rights Reserved.