Lizzy v1.1.1

christophedelory.content
Class ContentMetadataCenter

java.lang.Object
  extended by christophedelory.content.ContentMetadataCenter

public final class ContentMetadataCenter
extends Object

Fills the metadata of a given content through metadata providers. These metadata should be:

Since:
1.0.0
Version:
$Revision: 92 $
Author:
Christophe Delory

Method Summary
 boolean fillMetadata(Content content)
          Fills if possible the metadata of the specified content.
static ContentMetadataCenter getInstance()
          Returns the unique class instance.
 void reloadProviders()
          Refreshes the list of providers managed by this center.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContentMetadataCenter getInstance()
Returns the unique class instance.

Returns:
an instance of this class. Shall not be null.

reloadProviders

public void reloadProviders()
Refreshes the list of providers managed by this center. If new providers are added after the instantiation of this class, you will need to call this method manually.


fillMetadata

public boolean fillMetadata(Content content)
Fills if possible the metadata of the specified content.

Parameters:
content - a content. Shall not be null.
Returns:
true if a provider recognized the format, false otherwise.
Throws:
NullPointerException - if content is null.
See Also:
ContentMetadataProvider.fillMetadata(christophedelory.content.Content, org.apache.commons.logging.Log)

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.