public class SpenObjectRuntimeManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpenObjectRuntimeManager.InstallListener
Listener for plug-in installation and uninstallation events
This listener interface provides callback methods for receiving plug-in installation and uninstallation events
|
| Constructor and Description |
|---|
SpenObjectRuntimeManager(Activity activity)
Creates an SpenObjectRuntimeManager instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this SpenObjectRuntimeManager
|
SpenObjectRuntime |
createObjectRuntime(SpenObjectRuntimeInfo info)
Create an SpenObjectRuntime instance with the specified runtime information.
|
SpenObjectRuntime |
createObjectRuntime(SpenObjectRuntimeInfo info,
String privateKey)
Create an SpenObjectRuntime instance that requires a private key with the specified runtime information.
|
SpenObjectRuntime |
createObjectRuntime(String className)
Create an SpenObjectRuntime instance with the specified class name.
|
SpenObjectRuntime |
createObjectRuntime(String className,
String privateKey)
Create an SpenObjectRuntime instance that requires a private key with the specified class name
|
List<SpenObjectRuntimeInfo> |
getObjectRuntimeInfoList()
Get the list of ObjectRuntime information objects
|
String |
getPrivateKeyHint(SpenObjectRuntimeInfo info)
Get the private key for the specified ObjectRuntime
|
void |
setListener(SpenObjectRuntimeManager.InstallListener listener)
Set the specified InstallListener instance to receive plug-in installation and uninstallation events
|
void |
unload(SpenObjectRuntime objectRuntime)
Unload the specified SpenObjectRuntime instance
|
public SpenObjectRuntimeManager(Activity activity)
activity - The Activity instance for the ObjectRuntimeIllegalArgumentException - Thrown if activity is null.public void setListener(SpenObjectRuntimeManager.InstallListener listener)
listener - The InstallListener instance to receive plug-in installation and uninstallation eventspublic String getPrivateKeyHint(SpenObjectRuntimeInfo info) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException, InstantiationException
info - The ObjectRuntime information objectClassNotFoundException - Thrown if the SpenObjectRuntime class with the specified name is not foundIllegalArgumentException - Thrown when the SpenObjectRuntimeInfo instance passed is nullIllegalAccessException - Thrown if access is denied to create SpenObjectRuntimeInstantiationException - Thrown when SpenObjectRuntime cannot be instantiatedpublic List<SpenObjectRuntimeInfo> getObjectRuntimeInfoList()
public SpenObjectRuntime createObjectRuntime(SpenObjectRuntimeInfo info) throws ClassNotFoundException, InstantiationException, IllegalAccessException, Exception
info - ObjectRuntime information objectClassNotFoundException - Thrown if the SpenObjectRuntime class with the specified name is not foundIllegalAccessException - Thrown if access is denied to create SpenObjectRuntimeInstantiationException - Thrown when SpenObjectRuntime cannot be instantiatedException - Other exceptionIllegalArgumentException - Thrown if info is null.public SpenObjectRuntime createObjectRuntime(SpenObjectRuntimeInfo info, String privateKey) throws ClassNotFoundException, InstantiationException, IllegalAccessException, Exception
info - information of ObjectRuntimeprivateKey - The private key for the ObjectRuntimeClassNotFoundException - Thrown if the SpenObjectRuntime class with the specified name is not foundIllegalAccessException - Thrown if access is denied to create SpenObjectRuntimeInstantiationException - Thrown when SpenObjectRuntime cannot be instantiatedException - Other exceptionsIllegalArgumentException - Thrown if info is null.public SpenObjectRuntime createObjectRuntime(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException, Exception
className - The SpenObjectRuntime class nameClassNotFoundException - Thrown if the SpenObjectRuntime class with the specified name is not foundIllegalAccessException - Thrown if access is denied to create SpenObjectRuntimeInstantiationException - Thrown when SpenObjectRuntime cannot be instantiatedException - Other exceptionsIllegalArgumentException - Thrown if className is null.public SpenObjectRuntime createObjectRuntime(String className, String privateKey) throws ClassNotFoundException, InstantiationException, IllegalAccessException, Exception
className - The SpenObjectRuntime class nameprivateKey - The private key for the ObjectRuntimeClassNotFoundException - Thrown if the SpenObjectRuntime class with the specified name is not foundIllegalAccessException - Thrown if access is denied to create SpenObjectRuntimeInstantiationException - Thrown when SpenObjectRuntime cannot be instantiatedException - Other exceptionsIllegalArgumentException - Thrown if className is null.NullPointerException - Thrown if privateKey is nullpublic void unload(SpenObjectRuntime objectRuntime)
objectRuntime - The SpenObjectRuntime instanceIllegalStateException - Thrown if objectRuntime is null.public void close()