use of org.codice.alliance.nsili.endpoint.managers.DataModelMgrImpl in project alliance by codice.
the class LibraryImpl method getDataModelMgrObject.
private Object getDataModelMgrObject(String managerId) {
Object obj;
DataModelMgrImpl dataModelMgr = new DataModelMgrImpl();
if (!CorbaUtils.isIdActive(poa, managerId.getBytes(Charset.forName(NsiliEndpoint.ENCODING)))) {
try {
poa.activate_object_with_id(managerId.getBytes(Charset.forName(NsiliEndpoint.ENCODING)), dataModelMgr);
} catch (ServantAlreadyActive | ObjectAlreadyActive | WrongPolicy e) {
LOGGER.info("Error activating DataModelMgr: ", e);
}
}
obj = poa.create_reference_with_id(managerId.getBytes(Charset.forName(NsiliEndpoint.ENCODING)), DataModelMgrHelper.id());
return obj;
}
Aggregations