private ORB getORB() { if (services != null) { ORBLocator orbLocator = services.getService(ORBLocator.class) ; if (orbLocator != null) { return orbLocator.getORB() ; } } throw new RuntimeException( "Could not get ORB" ) ; }
private ORB getORB() { ORBLocator orbHelper = habitat.getComponent(ORBLocator.class); if (orb == null) { orb = orbHelper.getORB() ; } return orb ; }
private ORB getORB() { ORBLocator orbHelper = services.getService(ORBLocator.class); if (orb == null) { orb = orbHelper.getORB() ; } return orb ; }
private ORB getORB() { if (habitat != null) { ORBLocator orbLocator = habitat.getByContract(ORBLocator.class) ; if (orbLocator != null) { return orbLocator.getORB() ; } } throw new RuntimeException( "Could not get ORB" ) ; }