corba/src/share/classes/com/sun/corba/se/impl/presentation/rmi/StubFactoryFactoryProxyImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.corba.se.impl.presentation.rmi; |
26 package com.sun.corba.se.impl.presentation.rmi; |
27 |
27 |
|
28 import java.security.AccessController; |
|
29 import java.security.PrivilegedAction; |
28 import com.sun.corba.se.spi.presentation.rmi.PresentationManager ; |
30 import com.sun.corba.se.spi.presentation.rmi.PresentationManager ; |
29 |
31 |
30 public class StubFactoryFactoryProxyImpl extends StubFactoryFactoryDynamicBase |
32 public class StubFactoryFactoryProxyImpl extends StubFactoryFactoryDynamicBase |
31 { |
33 { |
32 public PresentationManager.StubFactory makeDynamicStubFactory( |
34 public PresentationManager.StubFactory makeDynamicStubFactory( |
33 PresentationManager pm, PresentationManager.ClassData classData, |
35 PresentationManager pm, final PresentationManager.ClassData classData, |
34 ClassLoader classLoader ) |
36 final ClassLoader classLoader ) |
35 { |
37 { |
36 return new StubFactoryProxyImpl( classData, classLoader ) ; |
38 return AccessController |
|
39 .doPrivileged(new PrivilegedAction<StubFactoryProxyImpl>() { |
|
40 @Override |
|
41 public StubFactoryProxyImpl run() { |
|
42 return new StubFactoryProxyImpl(classData, classLoader); |
|
43 } |
|
44 }); |
37 } |
45 } |
38 } |
46 } |