Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 316961
Collapse All | Expand All

(-)src/org/eclipse/rwt/internal/AdapterFactoryRegistry.java (-7 / +5 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2002, 2007 Innoopract Informationssysteme GmbH.
2
 * Copyright (c) 2002, 2010 Innoopract Informationssysteme GmbH.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
9
 *     Innoopract Informationssysteme GmbH - initial API and implementation
10
 *     RĂ¼diger Herrmann - ongoing development
10
 ******************************************************************************/
11
 ******************************************************************************/
11
12
12
package org.eclipse.rwt.internal;
13
package org.eclipse.rwt.internal;
Lines 15-25 Link Here
15
import java.util.ArrayList;
16
import java.util.ArrayList;
16
import java.util.List;
17
import java.util.List;
17
18
18
import javax.servlet.http.HttpServletRequest;
19
20
import org.eclipse.rwt.Adaptable;
19
import org.eclipse.rwt.Adaptable;
21
import org.eclipse.rwt.AdapterFactory;
20
import org.eclipse.rwt.AdapterFactory;
22
import org.eclipse.rwt.internal.service.ContextProvider;
21
import org.eclipse.rwt.internal.service.ServletLog;
23
import org.eclipse.rwt.internal.util.ParamCheck;
22
import org.eclipse.rwt.internal.util.ParamCheck;
24
23
25
24
Lines 86-96 Link Here
86
        AdapterFactory factory = ( AdapterFactory )clazz.newInstance();
85
        AdapterFactory factory = ( AdapterFactory )clazz.newInstance();
87
        AdapterManager manager = AdapterManagerImpl.getInstance();
86
        AdapterManager manager = AdapterManagerImpl.getInstance();
88
        manager.registerAdapters( factory, entries[ i ].adaptableClass );
87
        manager.registerAdapters( factory, entries[ i ].adaptableClass );
89
      } catch( final Throwable thr ) {
88
      } catch( Throwable thr ) {
90
        String text = "Could not create an instance of ''{0}''.";
89
        String text = "Could not create an instance of ''{0}''.";
91
        String msg = MessageFormat.format( text, new Object[] { clazz } );
90
        String msg = MessageFormat.format( text, new Object[] { clazz } );
92
        HttpServletRequest request = ContextProvider.getRequest();
91
        ServletLog.log( msg, thr );
93
        request.getSession().getServletContext().log( msg, thr );
94
      }
92
      }
95
    }
93
    }
96
  }
94
  }

Return to bug 316961