use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.
the class RestContainerTest method testCreateContainer2.
public void testCreateContainer2() throws Exception {
ContainerTypeDescription description = getContainerFactory().getDescriptionByName(RestConstants.REST_CONTAINER_TYPE);
IContainer container = getContainerFactory().createContainer(description, new Object[] { new URL(RestConstants.TEST_DE_TARGET) });
assertNotNull(container);
assertTrue(container instanceof RestClientContainer);
}
use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.
the class RestContainerTest method testGetRemoteServiceNamespace.
public void testGetRemoteServiceNamespace() throws Exception {
IContainer container = createRestContainer(RestConstants.TEST_DE_TARGET);
IRemoteServiceClientContainerAdapter adapter = getRemoteServiceClientContainerAdapter(container);
assertNotNull(adapter);
Namespace namespace = adapter.getRemoteServiceNamespace();
assertNotNull(namespace);
}
use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.
the class RpcContainerTest method testCreateContainer3.
public void testCreateContainer3() throws Exception {
ContainerTypeDescription description = getContainerFactory().getDescriptionByName(RpcConstants.RPC_CONTAINER_TYPE);
IContainer container = getContainerFactory().createContainer(description, new Object[] { new URI(RpcConstants.TEST_ECHO_TARGET) });
assertNotNull(container);
assertTrue(container instanceof RpcClientContainer);
}
use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.
the class AbstractConcatHostApplication method start.
public Object start(IApplicationContext context) throws Exception {
// First, create container of appropriate type
IContainer container = createContainer();
// Then, from container create remote service container
rsContainer = createRemoteServiceContainer(container);
// Now register remote service
registerRemoteService(getRemoteServiceClass(), createRemoteService(), createRemoteServiceProperties());
printStarted();
// And wait until we're explicitly stopped.
synchronized (this) {
while (!done) wait();
}
return new Integer(0);
}
use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.
the class ContainerStoreTest method testAndRetrieveStoreContainerByIDAndCreateContainer.
public void testAndRetrieveStoreContainerByIDAndCreateContainer() throws Exception {
final ID containerID = testStoreContainer();
// Now retrieve from container store with given ID
final IContainerEntry containerEntry = containerStore.retrieve(containerID);
assertNotNull(containerEntry);
final IContainer containera = containerEntry.createContainer();
final ID containerIDa = containera.getID();
assertNotNull(containerIDa);
assertTrue(containerIDa.equals(containerID));
}
Aggregations