Oracle Application Server 10g Java Object Cache API Reference
10g(9.0.4)

B10388-01

oracle.ias.cache
Interface Declarable


public interface Declarable

This interface is defined for declarative caching.

Any user defined object in the declarative caching xml file should implement this interface in order to be constructed.

For example, user can declear a CacheLoader in a declarative XML file as following:

    <cache-loader>
       <classname>user.sample.cache.Loader</classname>
       <parameter name="location">source</parameter>
    </cache-loader>

In this case, user.sample.cache.Loader has to implement both CacheLoader interface and Declarable interface. Then cache service can construct a valid user.sample.cache.Loader object by first calling an empty contructor, and then calling the init(Properties props) method to pass in the parameters.


Method Summary
 void init(java.util.Properties props)
          is intended to be used to initialize a user defined object.

 

Method Detail

init

public void init(java.util.Properties props)
is intended to be used to initialize a user defined object.

Oracle Application Server 10g Java Object Cache API Reference
10g(9.0.4)

B10388-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.