

Public Member Functions | |
| TestComponent (String name) | |
| TestComponent (String name, boolean simulateConstructFailure, boolean simulateDestructFailure) | |
| void | activate () throws Exception |
| void | deactivate () |
| void | construct () throws RemoteException |
| void | destruct () throws RemoteException |
| String[] | implementedInterfaces () |
| boolean | doesImplement (String type) |
| Object | getObject () |
| int | getHandle () |
| void | setHandle (int h) |
Package Attributes | |
| String | name |
| int | handle = 0 |
| boolean | simulateConstructFailure = false |
| boolean | simulateDestructFailure = false |
Test implementation of Component.
| com::cosylab::acs::maci::test::TestComponent::TestComponent | ( | String | name | ) | [inline] |
Constructor for TestComponent.
| name | name of the cob |
| com::cosylab::acs::maci::test::TestComponent::TestComponent | ( | String | name, | |
| boolean | simulateConstructFailure, | |||
| boolean | simulateDestructFailure | |||
| ) | [inline] |
Constructor for TestComponent, tuning construct/destruct failures.
| name | name of the cob | |
| simulateConstructFailure | if true construct method will throw exception | |
| simulateDestructFailure | if true desctruct method will throw exception |
| void com::cosylab::acs::maci::test::TestComponent::activate | ( | ) | throws Exception [inline] |
TectContainer should call this method on activation.
Reimplemented in com::cosylab::acs::maci::test::TestHierarchicalComponent.
Referenced by com::cosylab::acs::maci::test::TestContainer::activate_component().
| void com::cosylab::acs::maci::test::TestComponent::construct | ( | ) | throws RemoteException [inline] |
Implements com::cosylab::acs::maci::Component.
Reimplemented in com::cosylab::acs::maci::test::TestHierarchicalComponent.
References simulateConstructFailure.
| void com::cosylab::acs::maci::test::TestComponent::deactivate | ( | ) | [inline] |
TectContainer should call this method on deactivation.
Reimplemented in com::cosylab::acs::maci::test::TestHierarchicalComponent.
Referenced by com::cosylab::acs::maci::test::TestContainer::deactivate_components().
| void com::cosylab::acs::maci::test::TestComponent::destruct | ( | ) | throws RemoteException [inline] |
Implements com::cosylab::acs::maci::Component.
Reimplemented in com::cosylab::acs::maci::test::TestHierarchicalComponent.
References simulateDestructFailure.
| boolean com::cosylab::acs::maci::test::TestComponent::doesImplement | ( | String | type | ) | [inline] |
Implements com::cosylab::acs::maci::Component.
| int com::cosylab::acs::maci::test::TestComponent::getHandle | ( | ) | [inline] |
Get component handle.
References handle.
Referenced by com::cosylab::acs::maci::test::TestHierarchicalComponent::activateSubComponents(), com::cosylab::acs::maci::test::ManagerImplTest::testGetCyclicHierachicalComponentAllowWithPreactivated(), and com::cosylab::acs::maci::test::ManagerImplTest::testManagerShutdownWithComponentDestruction().
| Object com::cosylab::acs::maci::test::TestComponent::getObject | ( | ) | [inline] |
Implements com::cosylab::acs::maci::Component.
| String [] com::cosylab::acs::maci::test::TestComponent::implementedInterfaces | ( | ) | [inline] |
| void com::cosylab::acs::maci::test::TestComponent::setHandle | ( | int | h | ) | [inline] |
Set component handle.
| h | component handle. |
References handle.
Referenced by com::cosylab::acs::maci::test::TestContainer::activate_component(), and com::cosylab::acs::maci::test::TestContainer::deactivate_components().
int com::cosylab::acs::maci::test::TestComponent::handle = 0 [package] |
Component handle.
Referenced by getHandle(), and setHandle().
String com::cosylab::acs::maci::test::TestComponent::name [package] |
boolean com::cosylab::acs::maci::test::TestComponent::simulateConstructFailure = false [package] |
If true construct method will throw exception.
Referenced by construct().
boolean com::cosylab::acs::maci::test::TestComponent::simulateDestructFailure = false [package] |
If true desctruct method will throw exception.
Referenced by destruct().
1.6.2