Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.model
Class CacheManager

java.lang.Object
  extended byoracle.panama.model.CacheManager


public final class CacheManager
extends java.lang.Object

CacheManager is a utility class for Third Party Developer who are developing Wireless Application using Wireless Model Object( oracle.panama.model.* ).

The following is the code snippet shown how to use CacheManager when writing simple Java Application using Model Object:

  public static void main( String[] argv )
  {
     // Initialize Wireless Runtime Environment
     String name = CacheManager.initModelController();

     // Safe to call Model Object

     // Cleanup Wireless Runtime Environment
     CacheManager.stopModelController();
     System.exit( 0 );
   }
 

Constructor Summary
CacheManager()

Method Summary
static java.lang.String initModelController()
This method will initialize Wireless Runtime Environment, it should be called before calling any other Wireless Object
static void stopModelController()
This method will clean up running Wireless Runtime Environment, de-register itself from Wireless Schema in AS Infra DB.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CacheManager

public CacheManager()

Method Detail

initModelController

public static final java.lang.String initModelController()
This method will initialize Wireless Runtime Environment, it should be called before calling any other Wireless Object
Returns:
unique process name to identify running Wireless Application, which is registered in Wireless Schema in AS Infra DB

stopModelController

public static final void stopModelController()
This method will clean up running Wireless Runtime Environment, de-register itself from Wireless Schema in AS Infra DB. This should only be called after the last call to Wireless Model Object

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.