Oracle Java Wireless Client

com.sun.ams
Class AmsFactory

java.lang.Object
  extended by com.sun.ams.AmsFactory

public final class AmsFactory
extends java.lang.Object

AMS factory. Returns references to instances of TaskManager, Installer, SuiteStoreManager.


Constructor Summary
AmsFactory()
           
 
Method Summary
static AMSRequestManager getAMSRequestManager()
          Returns AMSRequestManager implementation.
static AppInstaller getAppInstaller()
          Returns AppInstaller implementation.
static CertificateInfoManager getCertificateInfoManager()
          Returns CertificateInfoManager implementation.
static LinkInstaller getLinkInstaller()
          Returns LinkInstaller implementation.
static LocaleChangeNotifier getLocaleChangeNotifier()
          Returns LocaleChangeNotifier implementation
static SuiteStoreManager getStoreManager()
          Returns SuiteStoreManager implementation.
static TaskManager getTaskManager()
          Returns TaskManager implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmsFactory

public AmsFactory()
Method Detail

getTaskManager

public static TaskManager getTaskManager()
                                  throws UnsupportedServiceException,
                                         java.lang.SecurityException
Returns TaskManager implementation.

Returns:
TaskManager implementation.
Throws:
java.lang.SecurityException - if the caller does not have the required permission
UnsupportedServiceException - if this functionality is not supported

getStoreManager

public static SuiteStoreManager getStoreManager()
                                         throws java.lang.SecurityException
Returns SuiteStoreManager implementation.

Returns:
SuiteStoreManager implementation.
Throws:
java.lang.SecurityException - if the caller does not have the required permission

getAppInstaller

public static AppInstaller getAppInstaller()
                                    throws java.lang.SecurityException
Returns AppInstaller implementation.

Returns:
AppInstaller implementation.
Throws:
java.lang.SecurityException - if the caller does not have the required permission

getLinkInstaller

public static LinkInstaller getLinkInstaller()
                                      throws java.lang.SecurityException,
                                             UnsupportedServiceException
Returns LinkInstaller implementation.

Returns:
LinkInstaller implementation.
Throws:
java.lang.SecurityException - if the caller does not have the required permission
UnsupportedServiceException - if this functionality is not supported

getCertificateInfoManager

public static CertificateInfoManager getCertificateInfoManager()
                                                        throws java.lang.SecurityException
Returns CertificateInfoManager implementation.

Returns:
CertificateInfoManager implementation.
Throws:
java.lang.SecurityException - if the caller does not have the required permission

getAMSRequestManager

public static AMSRequestManager getAMSRequestManager()
                                              throws java.lang.SecurityException,
                                                     UnsupportedServiceException
Returns AMSRequestManager implementation.

Returns:
AMSRequestManager implementation.
Throws:
java.lang.SecurityException - if the caller does not have the required permission (if calling MIdlet is untrusted or not an AMS UI MIdlet)
UnsupportedServiceException - if this functionality is not supported

getLocaleChangeNotifier

public static LocaleChangeNotifier getLocaleChangeNotifier()
                                                    throws java.lang.SecurityException
Returns LocaleChangeNotifier implementation

Returns:
LocaleChangeNotifier implementation
Throws:
java.lang.SecurityException - if the caller does not have the required permission

Oracle Java Wireless Client

Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.