org.jboss.system.server.profileservice.repository
Class JAXBAttachmentSerializer

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.AbstractFileAttachmentsSerializer
      extended by org.jboss.system.server.profileservice.repository.JAXBAttachmentSerializer

public class JAXBAttachmentSerializer
extends AbstractFileAttachmentsSerializer

A basic JAXB attachment Serializer.

Version:
$Revision: 88906 $
Author:
Emanuel Muckenhuber

Constructor Summary
JAXBAttachmentSerializer(File dir)
           
 
Method Summary
protected  File getAttachmentPath(String baseName)
           
protected
<T> T
loadAttachment(File attachmentsStore, Class<T> expected)
           
protected  void saveAttachment(File attachmentsStore, Object attachment)
           
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractFileAttachmentsSerializer
getAttachmentsStoreDir, loadAttachment, saveAttachment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBAttachmentSerializer

public JAXBAttachmentSerializer(File dir)
Method Detail

loadAttachment

protected <T> T loadAttachment(File attachmentsStore,
                               Class<T> expected)
                    throws Exception
Specified by:
loadAttachment in class AbstractFileAttachmentsSerializer
Throws:
Exception

saveAttachment

protected void saveAttachment(File attachmentsStore,
                              Object attachment)
                       throws Exception
Specified by:
saveAttachment in class AbstractFileAttachmentsSerializer
Throws:
Exception

getAttachmentPath

protected File getAttachmentPath(String baseName)
Overrides:
getAttachmentPath in class AbstractFileAttachmentsSerializer


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.