examples.guestbook
Class GuestbookServiceImpl.PrivilegedLoad

java.lang.Object
  extended byexamples.guestbook.GuestbookServiceImpl.PrivilegedLoad
All Implemented Interfaces:
PrivilegedExceptionAction
Enclosing class:
GuestbookServiceImpl

class GuestbookServiceImpl.PrivilegedLoad
extends Object
implements PrivilegedExceptionAction

This privileged action loads the values from a given InputStream and stores them in a Properties instance. The actual saving uses the method Properties.store(java.io.OutputStream, java.lang.String).


Field Summary
(package private)  File f_
           
(package private)  Properties p_
           
 
Constructor Summary
GuestbookServiceImpl.PrivilegedLoad(Properties p, File f)
           
 
Method Summary
 Object run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p_

Properties p_

f_

File f_
Constructor Detail

GuestbookServiceImpl.PrivilegedLoad

public GuestbookServiceImpl.PrivilegedLoad(Properties p,
                                           File f)
Method Detail

run

public Object run()
           throws PrivilegedActionException
Specified by:
run in interface PrivilegedExceptionAction
Throws:
PrivilegedActionException


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.