com.rhi.architecture.resource
Interface Resource

All Known Subinterfaces:
CacheFactory, SharedMemory
All Known Implementing Classes:
ConfigFacility, DataSourceFactory, JDODatabaseFactory, LogFactory, Logger, PersistentSharedMemory, SimpleCacheFactory, TransientSharedMemory

public interface Resource

This interface can be implemented by objects that maintain static resources requiring some "finalization" type behavior. Since the JVM won't commit to calling finalize() :-) I'm providing a hook where the object can be registered w/ the application framework. All registered Resources will have cleanup() called as part of application shutdown.

Since:
1.0
Author:
Pete McKinstry

Method Summary
 void close()
          Perform whatever cleanup is required of the underlying object..
 void init(java.util.Properties p)
          Perform whatever initialization is required of the resource.
 

Method Detail

init

public void init(java.util.Properties p)
          throws InitializationException
Perform whatever initialization is required of the resource.

Parameters:
p -
Throws:
InitializationException
Since:
1.1

close

public void close()
Perform whatever cleanup is required of the underlying object..

Since:
1.1


Copyright © 2002-2004 Robert Half International. All Rights Reserved.