/** * Obtain a reference to the named object * * @param objectName the name of the object * @return the object reference */ public static Object getBusinessObject(String objectName) { BusinessObjectManager theBOM = BusinessObjectManager.getInstance(); return theBOM.myBusinessObjects.get(objectName); }
/** * Register an object in the BOM * * @param objectName the name to register under * @param theObject the object reference */ public static void registerBusinessObject(String objectName, Object theObject) { LOGGER.log(Level.INFO, "Registering Object: {0}", objectName); BusinessObjectManager theBOM = BusinessObjectManager.getInstance(); theBOM.myBusinessObjects.put(objectName, theObject); }