public class CAModuleManager extends Object implements ResourceServer
There is only one instance of the CAModuleManager in a receiver and it can be retrieved using the getInstance method.
| Modifier and Type | Method and Description |
|---|---|
void |
addCAListener(CAListener l)
Registers a new CA event listener to CAModuleManager.
|
void |
addMMIListener(MMIListener listener)
Registers a listener for the MMI related
events.
|
void |
addResourceStatusEventListener(ResourceStatusListener l)
Registers a listener for the resource status messages.
|
static CAModuleManager |
getInstance()
Returns the instance of the CAModuleManager class.
|
CAModule[] |
getModules()
Returns all available CA modules.
|
CAModule[] |
getModules(Service s)
Returns all available modules whose CASystemID matches
with the CASystemID of a CA system used to scramble
this service.
|
int |
numberOfModules()
Returns the number of connected CA modules.
|
void |
removeCAListener(CAListener l)
Removes a registered listener from CAModuleManager.
|
void |
removeMMIListener(MMIListener listener)
Removes a registered listener for the MMI related
events.
|
void |
removeResourceStatusEventListener(ResourceStatusListener l)
Removes a registered listener for the resource status messages.
|
public static CAModuleManager getInstance()
public int numberOfModules()
public CAModule[] getModules()
If there are no available modules, returns an array whose length is 0.
public CAModule[] getModules(Service s)
If there are no applicable modules, returns an array whose length is 0. If the service passed as a parameter is not scrambled, returns an empty array whose length is 0.
s - a service that is scrambledpublic void addCAListener(CAListener l)
l - the listener to be registeredpublic void removeCAListener(CAListener l)
l - the listener to be removedpublic void addMMIListener(MMIListener listener) throws CAException
listener - the listener to be registeredMMIListenerAlreadyRegisteredException - raised if there is
already a listener registeredSecurityException - raised if the application does not have an instance of
CAPermission with the "MMI" name.CAExceptionpublic void removeMMIListener(MMIListener listener)
listener - the listener to be removedpublic void addResourceStatusEventListener(ResourceStatusListener l)
addResourceStatusEventListener in interface ResourceServerl - the listener to be registeredpublic void removeResourceStatusEventListener(ResourceStatusListener l)
removeResourceStatusEventListener in interface ResourceServerl - the listener to be removedCopyright © 2012 code4tv.com. All Rights Reserved.