org.alfresco.repo.thumbnail
Class ThumbnailDefinitionSpringRegisterer

java.lang.Object
  extended by org.alfresco.repo.thumbnail.ThumbnailDefinitionSpringRegisterer
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ThumbnailDefinitionSpringRegisterer
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean

This class provides a way to register a new ThumbnailDefinition with the ThumbnailRegistry in spring, without needing to override the whole of the "thumbnailRegistry" bean. This class is a stop-gap until Alfresco 4.0, when ThumbnailDefinitions will be able to be registered more cleanly with the registry in the same way as other Alfresco beans to their registrys.


Constructor Summary
ThumbnailDefinitionSpringRegisterer()
           
 
Method Summary
 void afterPropertiesSet()
          Registers the ThumbnailDefinition with the registry.
 void setThumbnailDefinition(ThumbnailDefinition thumbnailDefinition)
           
 void setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailDefinitionSpringRegisterer

public ThumbnailDefinitionSpringRegisterer()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Registers the ThumbnailDefinition with the registry.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

setThumbnailRegistry

public void setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)

setThumbnailDefinition

public void setThumbnailDefinition(ThumbnailDefinition thumbnailDefinition)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.