|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.sat.core.framework.BaseBundleActivator
org.eclipse.soda.dk.connection.bundle.ServiceBundle
org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
org.eclipse.soda.dk.transport.test.bundle.TransportTestBundle
public abstract class TransportTestBundle
Transport Test Bundle class.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_NAME
Defines the class name. |
protected org.eclipse.soda.sat.core.record.interfaces.IServiceDetecter |
detecter
Define the detecter (IServiceDetecter) field. |
protected TransportTestService |
testCase
Save the tester object. |
| Fields inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle |
|---|
DEVICE_CLASS, DEVICE_REVISION |
| Fields inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator |
|---|
NO_SERVICES |
| Constructor Summary | |
|---|---|
TransportTestBundle()
|
|
| Method Summary | |
|---|---|
protected void |
activate()
Activates the bundle. |
java.util.Hashtable |
createProperties()
Gets the properties to be registered with the service(s). |
java.lang.Object |
createService()
Create the Tester. |
TransportTestService |
createService(TransportService transport)
Create the Tester for the specified transport. |
protected void |
deactivate()
Stop the test case and the bundle. |
abstract java.lang.String[] |
getExportedServiceNames()
Return the service name(s) to be registered by the bundle. |
abstract java.lang.String |
getInterestServiceName()
Gets the transport service name to be tested. |
void |
serviceAdded(org.eclipse.soda.sat.core.record.interfaces.IServiceDetecter detecter,
org.osgi.framework.ServiceReference serviceReference,
java.lang.Object service)
|
void |
serviceRemoved(org.eclipse.soda.sat.core.record.interfaces.IServiceDetecter detecter,
org.osgi.framework.ServiceReference serviceReference,
java.lang.Object service)
|
void |
setInterest(java.lang.Object interest)
Sets the interest object. |
protected void |
start()
Start. |
protected void |
stop()
Stop. |
| Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle |
|---|
destroyExportedServices, getInterest |
| Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle |
|---|
getService, log, log, setService |
| Methods inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator |
|---|
acquireImportedService, acquireImportedServices, acquireOptionalImportedServices, addExportedProxyService, addExportedProxyServices, addExportedService, addExportedServices, addImportedServiceFilter, addOptionalImportedServiceFilter, basicGetImportedServiceNames, basicGetOptionalImportedServiceNames, collectImportedServiceNames, collectOptionalImportedServiceNames, getAsyncStartPriority, getBundle, getBundleContext, getBundleSymbolicName, getDataDirectory, getDataFile, getExportedService, getExportedServiceNamesFromManifest, getExportedServiceProperties, getExportedServiceProperties, getExportedServices, getExportedServices, getFilePropertiesInputStream, getFilePropertiesInputStream, getImportedService, getImportedServiceFilter, getImportedServiceNames, getImportedServiceNamesFromManifest, getImportedServiceProperty, getImportedServicePropertyKeys, getImportedServices, getOptionalImportedService, getOptionalImportedServiceFilter, getOptionalImportedServiceNames, getOptionalImportedServiceProperty, getOptionalImportedServicePropertyKeys, getOptionalImportedServices, getProperties, getPropertiesInputStream, getProperty, getResourcePropertiesInputStream, getResourcePropertiesInputStream, handleAcquiredOptionalImportedService, handleException, handleFailedToFindProperties, handleReleasedOptionalImportedService, isStartAsync, isTransient, isUninstallable, releaseImportedService, releaseImportedServices, releaseOptionalImportedServices, removeExportedService, removeExportedService, removeExportedServices, removeImportedServiceFilter, removeOptionalImportedServiceFilter, restartFramework, setExportedServiceProperties, setExportedServiceProperties, shutdownFramework, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.osgi.framework.BundleActivator |
|---|
start, stop |
| Field Detail |
|---|
public static final java.lang.String CLASS_NAME
protected TransportTestService testCase
protected org.eclipse.soda.sat.core.record.interfaces.IServiceDetecter detecter
| Constructor Detail |
|---|
public TransportTestBundle()
| Method Detail |
|---|
protected void activate()
activate in class ServiceInterestBundlepublic java.util.Hashtable createProperties()
createProperties in class ServiceBundlepublic java.lang.Object createService()
createService in class ServiceBundleObject) value.createService(TransportService)public TransportTestService createService(TransportService transport)
TransportService)
parameter.
transport - The transport (TransportService) parameter.
Object) value.createService()protected void deactivate()
deactivate in class org.eclipse.soda.sat.core.framework.BaseBundleActivatorpublic abstract java.lang.String[] getExportedServiceNames()
getExportedServiceNames in class ServiceBundleString[])
value.public abstract java.lang.String getInterestServiceName()
getInterestServiceName in class ServiceInterestBundleString)
value.
public void serviceAdded(org.eclipse.soda.sat.core.record.interfaces.IServiceDetecter detecter,
org.osgi.framework.ServiceReference serviceReference,
java.lang.Object service)
serviceAdded in interface org.eclipse.soda.sat.core.record.interfaces.ServiceDetecterListenerdetecter - The detecter (IServiceDetecter) parameter.serviceReference - The service reference (ServiceReference) parameter.service - The service (Object) parameter.
public void serviceRemoved(org.eclipse.soda.sat.core.record.interfaces.IServiceDetecter detecter,
org.osgi.framework.ServiceReference serviceReference,
java.lang.Object service)
serviceRemoved in interface org.eclipse.soda.sat.core.record.interfaces.ServiceDetecterListenerdetecter - The detecter (IServiceDetecter) parameter.serviceReference - The service reference (ServiceReference) parameter.service - The service (Object) parameter.public void setInterest(java.lang.Object interest)
Object)
parameter.
setInterest in class ServiceInterestBundleinterest - The interest (Object) parameter.ServiceInterestBundle.getInterest()
protected void start()
throws java.lang.Exception
start in class org.eclipse.soda.sat.core.framework.BaseBundleActivatorjava.lang.Exception - Exception.
protected void stop()
throws java.lang.Exception
stop in class org.eclipse.soda.sat.core.framework.BaseBundleActivatorjava.lang.Exception - Exception.
|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||