Interface ResourcesContainerListener<T>
- Type Parameters:
T- The type of the resource that is managed by the container.
- All Superinterfaces:
EventListener,ResourcesContainerClearedListener
This listener provides callbacks to observe
ResourcesContainer
instances.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidThis method gets called after theResourcesContainer.addmethod was executed.default voidcleared()This method gets called after theResourcesContainer.clearmethod was executed.default voidThis method gets called after theResourcesContainer.removemethod was executed.
-
Method Details
-
added
This method gets called after theResourcesContainer.addmethod was executed.- Parameters:
resourceName- The name by which the added resource is identified.resource- The added resource.- See Also:
-
removed
This method gets called after theResourcesContainer.removemethod was executed.- Parameters:
resourceName- The name by which the removed resource was identified.resource- The removed resource.- See Also:
-
cleared
default void cleared()Description copied from interface:ResourcesContainerClearedListenerThis method gets called after theResourcesContainer.clearmethod was executed.- Specified by:
clearedin interfaceResourcesContainerClearedListener- See Also:
-