de.smartics.properties.spi.core.metadata
Class MetaInfDocumentMetaDataProxy

Package class diagram package MetaInfDocumentMetaDataProxy
java.lang.Object
  extended by de.smartics.properties.spi.core.metadata.MetaInfDocumentMetaDataProxy
All Implemented Interfaces:
DocumentMetaDataProxy, Serializable

public final class MetaInfDocumentMetaDataProxy
     
     
extends Object
implements DocumentMetaDataProxy

Allows to lazy load annotation information.

See Also:
Serialized Form

Constructor Summary
MetaInfDocumentMetaDataProxy(PropertiesContext context, Method propertyMethod)
          Default constructor.
 
Method Summary
 DocumentMetaData getDocumentMetaData(PropertyDescriptor descriptor, Locale locale)
          Returns the document meta data.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaInfDocumentMetaDataProxy

public MetaInfDocumentMetaDataProxy(PropertiesContext context,
                                    Method propertyMethod)
Default constructor.

Parameters:
context - the properties context to fetch information from the META-INF folder.
propertyMethod - the method to use to fetch annotations in case the context is not to be used.
Method Detail

getDocumentMetaData

public DocumentMetaData getDocumentMetaData(PropertyDescriptor descriptor,
                                            Locale locale)
Returns the document meta data.

Specified by:
getDocumentMetaData in interface DocumentMetaDataProxy
Parameters:
descriptor - the descriptor of the property whose document meta data is requested.
locale - the locale to select the meta data in a specific language.
Returns:
the document meta data written for the given locale.

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string representation of the object.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.