AppleImpl.java revision 0
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * This code is free software; you can redistribute it and/or modify it
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * under the terms of the GNU General Public License version 2 only, as
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * published by the Free Software Foundation.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * This code is distributed in the hope that it will be useful, but WITHOUT
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * version 2 for more details (a copy is included in the LICENSE file that
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * accompanied this code).
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * You should have received a copy of the GNU General Public License version
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * 2 along with this work; if not, write to the Free Software Foundation,
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * CA 95054 USA or visit www.sun.com if you need additional information or
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * have any questions.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * The AppleImpl class implements the behavior of the remote "apple"
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * objects exported by the application.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift private static Logger logger = Logger.getLogger("reliability.apple");
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift public AppleImpl(String name) throws RemoteException {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * Receive an array of AppleEvent objects.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift String threadName = Thread.currentThread().getName();
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift threadName + ": " + toString() + ".notify: BEGIN");
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift threadName + ": " + toString() + ".notify(): END");
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift logger.log(Level.SEVERE, toString() + ".notify():", e);
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift * Return a newly created and exported orange implementation.
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift public Orange newOrange(String name) throws RemoteException {
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift String threadName = Thread.currentThread().getName();
bb8874d71cdd8e5288297b9727703437c6dfcfedmatthew_swift logger.log(Level.SEVERE, toString() + ".newOrange():", e);