[JBoss JIRA] (AS7-6646) Clean up privileged actions, remove redundant classes
by David Lloyd (JIRA)
David Lloyd created AS7-6646:
--------------------------------
Summary: Clean up privileged actions, remove redundant classes
Key: AS7-6646
URL: https://issues.jboss.org/browse/AS7-6646
Project: Application Server 7
Issue Type: Task
Reporter: David Lloyd
Assignee: David Lloyd
Fix For: 8.0.0.Alpha1
There are quite a lot of redundant usages of privileged actions in the code base. We can flatten them down into a small number of action classes, some of which can in turn be singletons.
{noformat}
Method
doPrivileged(PrivilegedAction<T>)
Found usages (342 usages found)
Production (339 usages found)
jboss-as-appclient (12 usages found)
ApplicationClientStartService.java (1 usage found)
(109: 46) AccessController.doPrivileged(new SetSelectorAction(contextSelector));
DefaultApplicationClientCallbackHandler.java (1 usage found)
(54: 41) final SecurityContext context = doPrivileged(securityContext());
SecurityActions.java (6 usages found)
(49: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(62: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(77: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(92: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
(104: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
(116: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-arquillian-common (1 usage found)
SecurityActions.java (1 usage found)
(39: 65) List<Field> declaredAccessableFields = AccessController.doPrivileged(new PrivilegedAction<List<Field>>() {
jboss-as-arquillian-protocol-jmx (2 usages found)
ArquillianService.java (2 usages found)
(306: 33) return AccessController.doPrivileged(GetTcclAction.INSTANCE);
(311: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
jboss-as-cli (12 usages found)
SecurityActions.java (3 usages found)
(76: 55) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(85: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(94: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(66: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(75: 55) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(67: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(76: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (5 usages found)
(93: 34) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(103: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(112: 34) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(122: 55) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(131: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-clustering-api (2 usages found)
SimpleMarshalledValue.java (2 usages found)
(205: 37) return AccessController.doPrivileged(action);
(220: 30) AccessController.doPrivileged(action);
jboss-as-clustering-common (1 usage found)
ServiceContainerHelper.java (1 usage found)
(77: 33) return AccessController.doPrivileged(action);
jboss-as-clustering-jgroups (4 usages found)
JGroupsExtension.java (1 usage found)
(77: 26) AccessController.doPrivileged(action);
ProtocolStackAdd.java (2 usages found)
(504: 51) this.protocolClass = AccessController.doPrivileged(action);
(520: 37) return AccessController.doPrivileged(action) != null;
TimerSchedulerAdapter.java (1 usage found)
(179: 34) AccessController.doPrivileged(action);
jboss-as-cmp (28 usages found)
CascadeDeleteStrategy.java (2 usages found)
(288: 53) return (Principal) AccessController.doPrivileged(getPrincipalAction);
(292: 41) return AccessController.doPrivileged(getCredentialAction);
GetTCLAction.java (1 usage found)
(40: 61) ClassLoader loader = (ClassLoader) AccessController.doPrivileged(ACTION);
GetTCLAction.java (1 usage found)
(40: 61) ClassLoader loader = (ClassLoader) AccessController.doPrivileged(ACTION);
JDBCCMRFieldBridge2.java (3 usages found)
(1372: 53) return (Principal) AccessController.doPrivileged(getPrincipalAction);
(1376: 41) return AccessController.doPrivileged(getCredentialAction);
(1380: 59) return (SecurityContext) AccessController.doPrivileged(new PrivilegedAction() {
SecurityActions.java (17 usages found)
(75: 49) return (RunAs) AccessController.doPrivileged(peekAction);
(79: 34) AccessController.doPrivileged(
(94: 49) return (RunAs) AccessController.doPrivileged(popAction);
(151: 55) return (Subject) AccessController.doPrivileged(exAction);
(265: 55) return (ClassLoader) AccessController.doPrivileged(getTCLPrivilegedAction);
(269: 55) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction() {
(277: 34) AccessController.doPrivileged(
(288: 34) AccessController.doPrivileged(
(311: 26) AccessController.doPrivileged(new PrivilegedExceptionAction() {
(323: 26) AccessController.doPrivileged(new PrivilegedExceptionAction() {
(335: 26) AccessController.doPrivileged(new PrivilegedAction() {
(345: 51) return (SecurityContext) AccessController.doPrivileged(new PrivilegedAction() {
(353: 45) return (Exception) AccessController.doPrivileged(new PrivilegedAction() {
(364: 26) AccessController.doPrivileged(new PrivilegedAction() {
(378: 26) AccessController.doPrivileged(new PrivilegedAction() {
(394: 26) AccessController.doPrivileged(new PrivilegedAction() {
(406: 26) AccessController.doPrivileged(new PrivilegedAction() {
TCLAction.java (4 usages found)
(80: 51) return (ClassLoader) AccessController.doPrivileged(getTCLPrivilegedAction);
(84: 51) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction() {
(92: 30) AccessController.doPrivileged(
(103: 30) AccessController.doPrivileged(
jboss-as-connector (12 usages found)
AbstractDataSourceService.java (4 usages found)
(192: 26) AccessController.doPrivileged(new SetContextLoaderAction(TransactionIntegration.class.getClassLoader()));
(196: 30) AccessController.doPrivileged(CLEAR_ACTION);
(376: 30) AccessController.doPrivileged(new SetContextLoaderAction(TransactionIntegration.class.getClassLoader()));
(380: 34) AccessController.doPrivileged(CLEAR_ACTION);
AbstractResourceAdapterDeploymentService.java (2 usages found)
(399: 30) AccessController.doPrivileged(new SetContextLoaderAction(
(404: 34) AccessController.doPrivileged(CLEAR_ACTION);
SecurityActions.java (2 usages found)
(45: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(58: 26) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (3 usages found)
(42: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(55: 26) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(73: 46) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
WorkManagerService.java (1 usage found)
(91: 54) String callbackProperties = AccessController.doPrivileged(new PrivilegedAction<String>() {
jboss-as-controller (17 usages found)
ConfigurationFile.java (1 usage found)
(506: 37) return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
OverallInterfaceCriteria.java (1 usage found)
(160: 33) return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
SecurityActions.java (3 usages found)
(46: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(56: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(65: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (2 usages found)
(74: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(85: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (2 usages found)
(75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (2 usages found)
(75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (2 usages found)
(75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (4 usages found)
(41: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(55: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(103: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(114: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
jboss-as-controller-client (1 usage found)
ClientConfigurationImpl.java (1 usage found)
(165: 37) return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
jboss-as-domain-http-interface (5 usages found)
SecurityActions.java (4 usages found)
(43: 33) return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
(51: 33) return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
(59: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(69: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (1 usage found)
(42: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
jboss-as-domain-management (1 usage found)
SecurityActions.java (1 usage found)
(45: 33) return AccessController.doPrivileged(new PrivilegedAction<Subject>() {
jboss-as-ee (6 usages found)
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-ejb3 (44 usages found)
AsyncFutureInterceptorFactory.java (2 usages found)
(90: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(100: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
AuthorizationInterceptor.java (1 usage found)
(192: 37) return AccessController.doPrivileged(action);
DefaultEjbClientContextService.java (2 usages found)
(68: 26) AccessController.doPrivileged(new SetSelectorAction(DefaultEJBClientContextSelector.INSTANCE));
(102: 30) AccessController.doPrivileged(new LockSelectorAction());
EJBComponent.java (1 usage found)
(175: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
EjbCorbaServant.java (2 usages found)
(447: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(458: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
FilePersistentObjectStore.java (4 usages found)
(84: 37) return AccessController.doPrivileged(action);
(105: 40) fis = AccessController.doPrivileged(action);
(130: 40) fos = AccessController.doPrivileged(action);
(152: 37) return AccessController.doPrivileged(action);
LocalEjbReceiver.java (2 usages found)
(564: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(575: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
MessageEndpointInvocationHandler.java (3 usages found)
(90: 13) doPrivileged(contextClassLoader(previousClassLoader));
(100: 31) previousClassLoader = doPrivileged(contextClassLoader(getApplicationClassLoader()));
(114: 13) doPrivileged(contextClassLoader(previousClassLoader));
SecurityActions.java (3 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(79: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
SecurityActions.java (3 usages found)
(46: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(63: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(81: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
SecurityActions.java (3 usages found)
(46: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(63: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(81: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
SecurityActions.java (4 usages found)
(46: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(65: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(124: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(136: 34) AccessController.doPrivileged(CLEAR_ACTION);
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityContextInterceptor.java (2 usages found)
(74: 9) doPrivileged(pushAction);
(78: 13) doPrivileged(popAction);
SerializedStatefulSessionComponent.java (1 usage found)
(82: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
SingletonComponent.java (1 usage found)
(203: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
StatefulSerializedProxy.java (1 usage found)
(64: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
StatefulSessionComponent.java (1 usage found)
(343: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
StatelessSerializedProxy.java (1 usage found)
(61: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
TimerHandleImpl.java (1 usage found)
(143: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
jboss-as-embedded (11 usages found)
ClassPathEjbJarScanner.java (2 usages found)
(234: 16) return doPrivileged(new PrivilegedAction<ClassLoader>() {
(245: 16) return doPrivileged(new PrivilegedAction<String>() {
JBossStandaloneEJBContainer.java (1 usage found)
(96: 50) String tmpDir = AccessController.doPrivileged(new PrivilegedAction<String>() {
JBossStandaloneEJBContainerProvider.java (1 usage found)
(115: 16) return doPrivileged(new PrivilegedAction<String>() {
SecurityActions.java (7 usages found)
(47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(60: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(75: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(90: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
(103: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
(117: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(132: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
jboss-as-host-controller (18 usages found)
RemoteDomainConnectionService.java (1 usage found)
(571: 37) return AccessController.doPrivileged( new PrivilegedAction<Integer>() {
SecurityActions.java (6 usages found)
(47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(61: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(74: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(89: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(104: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
(116: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
SecurityActions.java (3 usages found)
(75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(101: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
SecurityActions.java (2 usages found)
(75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (6 usages found)
(47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(61: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(74: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(89: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(104: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
(116: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
jboss-as-jacorb (7 usages found)
CorbaORBService.java (1 usage found)
(267: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
SecurityActions.java (1 usage found)
(46: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (5 usages found)
(46: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(63: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(79: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(97: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(115: 33) return AccessController.doPrivileged(new PrivilegedAction<Thread>() {
jboss-as-jaxr (2 usages found)
SecurityActions.java (2 usages found)
(43: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(56: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
jboss-as-jaxrs (2 usages found)
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-jmx (2 usages found)
SecurityActions.java (1 usage found)
(56: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
SecurityActions.java (1 usage found)
(67: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
jboss-as-jpa (5 usages found)
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(60: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(60: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
TransactionScopedEntityManager.java (1 usage found)
(114: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
jboss-as-jsr77 (2 usages found)
SecurityActions.java (1 usage found)
(37: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
SecurityActions.java (1 usage found)
(37: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
jboss-as-logging (5 usages found)
SecurityActions.java (5 usages found)
(41: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(55: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(119: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(130: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(140: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
jboss-as-messaging (8 usages found)
HornetQSecurityManagerAS7.java (3 usages found)
(96: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
(114: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(125: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
SecurityActions.java (3 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(73: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-naming (10 usages found)
InitialContextFactoryBuilder.java (1 usage found)
(69: 33) return AccessController.doPrivileged(
ObjectFactoryBuilder.java (1 usage found)
(177: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (4 usages found)
(38: 37) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(50: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(68: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(86: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-network (1 usage found)
NetworkUtils.java (1 usage found)
(207: 33) return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
jboss-as-osgi-launcher (8 usages found)
SecurityActions.java (8 usages found)
(46: 34) AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
(70: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
(83: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(98: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(114: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(136: 37) return AccessController.doPrivileged(GetSystemPropertiesAction.INSTANCE);
(145: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(160: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
jboss-as-osgi-service (5 usages found)
SecurityActions.java (3 usages found)
(43: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(56: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(71: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
SecurityActions.java (2 usages found)
(43: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(56: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
jboss-as-platform-mbean (5 usages found)
SecurityActions.java (5 usages found)
(47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(60: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(75: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(90: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
(102: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
jboss-as-pojo (2 usages found)
SecurityActions.java (2 usages found)
(47: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(65: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-process-controller (6 usages found)
SecurityActions.java (6 usages found)
(47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(61: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(74: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(89: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(104: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
(116: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
jboss-as-protocol (1 usage found)
SecurityActions.java (1 usage found)
(44: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
jboss-as-remoting (2 usages found)
SecurityActions.java (2 usages found)
(37: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(48: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
jboss-as-sar (1 usage found)
SecurityActions.java (1 usage found)
(67: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
jboss-as-security (24 usages found)
RealmDirectLoginModule.java (1 usage found)
(245: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
RuntimeVaultReader.java (1 usage found)
(61: 38) vault = AccessController.doPrivileged(new PrivilegedExceptionAction<SecurityVault>() {
SecurityActions.java (8 usages found)
(52: 41) return AccessController.doPrivileged(new PrivilegedExceptionAction<ModuleClassLoader>() {
(71: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(84: 37) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(96: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(109: 41) return AccessController.doPrivileged(new PrivilegedExceptionAction<Class<?>>() {
(219: 41) return AccessController.doPrivileged(IS_SET_ACTION);
(223: 41) return AccessController.doPrivileged(GET_CONNECTION_ACTION);
(227: 34) AccessController.doPrivileged(CLEAR_ACTION);
SecurityActions.java (3 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(73: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (5 usages found)
(49: 41) return AccessController.doPrivileged(new PrivilegedExceptionAction<ModuleClassLoader>() {
(66: 37) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
(78: 37) return AccessController.doPrivileged(new PrivilegedAction<Principal>() {
(100: 37) return AccessController.doPrivileged(new PrivilegedAction<Object>() {
(121: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
SecurityActions.java (1 usage found)
(46: 41) return AccessController.doPrivileged(new PrivilegedExceptionAction<ModuleClassLoader>() {
SecurityActions.java (1 usage found)
(70: 41) return AccessController.doPrivileged(GET_CONNECTION_ACTION);
SimpleSecurityManager.java (4 usages found)
(109: 49) final SecurityContext securityContext = doPrivileged(securityContext());
(125: 49) final SecurityContext securityContext = doPrivileged(securityContext());
(174: 49) final SecurityContext securityContext = doPrivileged(securityContext());
(235: 49) final SecurityContext securityContext = doPrivileged(securityContext());
jboss-as-server (15 usages found)
NetworkInterfaceService.java (1 usage found)
(176: 33) return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (7 usages found)
(48: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(62: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(75: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(90: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(105: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
(117: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
(129: 29) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityActions.java (1 usage found)
(36: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
SecurityActions.java (4 usages found)
(35: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(44: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(55: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(66: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
jboss-as-testsuite-shared (3 usages found)
ProcessWrapper.java (1 usage found)
(118: 62) private final boolean writeOutput = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
SecurityActions.java (2 usages found)
(67: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(76: 34) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-version (2 usages found)
ProductConfig.java (2 usages found)
(103: 86) return System.getSecurityManager() == null ? action.run() : AccessController.doPrivileged(action);
(166: 30) AccessController.doPrivileged(action);
jboss-as-web (16 usages found)
ClusteredSession.java (1 usage found)
(745: 62) StandardSessionFacade ssf = AccessController.doPrivileged(new PrivilegedAction<StandardSessionFacade>() {
DistributableSessionManager.java (1 usage found)
(361: 44) policyClass = AccessController.doPrivileged(new PrivilegedAction<String>() {
JBossContextConfig.java (1 usage found)
(138: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
SecurityActions.java (2 usages found)
(52: 33) return AccessController.doPrivileged(new PrivilegedExceptionAction<Class<?>>() {
(68: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
SecurityActions.java (8 usages found)
(51: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
(70: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(86: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
(97: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(111: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(130: 33) return AccessController.doPrivileged(new PrivilegedAction<RunAs>() {
(148: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(167: 37) return AccessController.doPrivileged(new PrivilegedAction<Throwable>() {
SecurityActions.java (2 usages found)
(43: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
(56: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
SecurityContextAssociationValve.java (1 usage found)
(204: 33) return AccessController.doPrivileged(action);
jboss-as-webservices-server-integration (11 usages found)
SecurityActions.java (2 usages found)
(48: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(66: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(48: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(66: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(44: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityDomainContextAdaptor.java (3 usages found)
(72: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
(93: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
(112: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
WSDeploymentAspectParser.java (2 usages found)
(365: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(382: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-webservices-tests-integration (1 usage found)
RemoteDeployer.java (1 usage found)
(378: 33) return AccessController.doPrivileged(action);
jboss-as-weld (15 usages found)
EjbRequestScopeActivationInterceptor.java (1 usage found)
(118: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
ModuleGroupSingletonProvider.java (1 usage found)
(125: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
ProxyServicesImpl.java (2 usages found)
(53: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(94: 48) return (Class<?>) AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (3 usages found)
(44: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(62: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
(76: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SecurityActions.java (2 usages found)
(43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
(61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
SessionObjectReferenceImpl.java (1 usage found)
(117: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
StatefulSessionObjectReferenceImpl.java (1 usage found)
(141: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
jboss-as-xts (1 usage found)
SecurityActions.java (1 usage found)
(45: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
Test (3 usages found)
jboss-as-cli (1 usage found)
ParameterValueResolutionTestCase.java (1 usage found)
(143: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
jboss-as-naming (1 usage found)
SecurityHelper.java (1 usage found)
(215: 37) return AccessController.doPrivileged(new PrivilegedExceptionAction<T>() {
jboss-as-security (1 usage found)
MockRuntimeVaultReader.java (1 usage found)
(29: 32) vault = AccessController.doPrivileged(new PrivilegedExceptionAction<SecurityVault>() {
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] (JGRP-653) Streaming API for large messages
by Andrea Carboni (JIRA)
[ https://issues.jboss.org/browse/JGRP-653?page=com.atlassian.jira.plugin.s... ]
Andrea Carboni edited comment on JGRP-653 at 2/27/13 1:10 PM:
--------------------------------------------------------------
Having a streaming API would be very useful. We are using jgroups as a better alternative than EBJs. The streaming API should be extended to the RpcDispatcher class in order to send an InputStream over the network.
was (Author: acarboni):
Having a streaming API would be very usefull. We are using jgroups as a better alternative respect to EBJs.
> Streaming API for large messages
> --------------------------------
>
> Key: JGRP-653
> URL: https://issues.jboss.org/browse/JGRP-653
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 3.x
>
> Attachments: JGroupsInputStream.java, JGroupsOutputStream.java, StreamTest.java
>
>
> For large messages, to load the entire payload into memory might be bad because the payload might be bigger than the max memory available. It would be useful to have an API which allows for use of input and output streams, so that large payloads can be read iteratively by a user and streamed out to the cluster via the underlying channel breaking the data in the input stream into chunks, which are fed into the input stream on the receivers side.
> Issues: we have to have 1 input stream per sender on the receiver side, because a stream is always defined between 2 parties (sender, receiver). Maybe something like NIO, where we register interest in a stream, are notified of new streams ('accept()') and get notified when data on any of the stream is available, would be beneficial.
> Demo is attached
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] (AS7-4331) Management operations for accessing transaction logs should be exposed in the web console
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/AS7-4331?page=com.atlassian.jira.plugin.s... ]
Brian Stansberry updated AS7-4331:
----------------------------------
Fix Version/s: (was: No Release)
Removing the "No Release" Fix Version. That's meant for tasks that don't directly relate to a formal release process; e.g. "Update the foo wiki page to describe the new bar functionality."
> Management operations for accessing transaction logs should be exposed in the web console
> -----------------------------------------------------------------------------------------
>
> Key: AS7-4331
> URL: https://issues.jboss.org/browse/AS7-4331
> Project: Application Server 7
> Issue Type: Bug
> Components: Console
> Affects Versions: 7.1.1.Final
> Reporter: Michael Musgrove
> Assignee: Heiko Braun
> Attachments: tx-log-view.png, tx-log.txt, tx-participants.png
>
>
> Task AS7-925 provides CLI management operations for accessing transaction logs.
> We need the same information to be made available in the web console.
> The operations are part of the log store sub model:
> org.jboss.as.txn.subsystem.LogStoreAddHandler
> We also need to expose the attribute for switching our log store implementation:
> TransactionSubsystemRootResourceDefinition.USEHORNETQSTORE
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] (AS7-4331) Management operations for accessing transaction logs should be exposed in the web console
by Heiko Braun (JIRA)
[ https://issues.jboss.org/browse/AS7-4331?page=com.atlassian.jira.plugin.s... ]
Heiko Braun updated AS7-4331:
-----------------------------
Attachment: tx-participants.png
Updated participants view (EIS information)
> Management operations for accessing transaction logs should be exposed in the web console
> -----------------------------------------------------------------------------------------
>
> Key: AS7-4331
> URL: https://issues.jboss.org/browse/AS7-4331
> Project: Application Server 7
> Issue Type: Bug
> Components: Console
> Affects Versions: 7.1.1.Final
> Reporter: Michael Musgrove
> Assignee: Heiko Braun
> Fix For: No Release
>
> Attachments: tx-log-view.png, tx-log.txt, tx-participants.png
>
>
> Task AS7-925 provides CLI management operations for accessing transaction logs.
> We need the same information to be made available in the web console.
> The operations are part of the log store sub model:
> org.jboss.as.txn.subsystem.LogStoreAddHandler
> We also need to expose the attribute for switching our log store implementation:
> TransactionSubsystemRootResourceDefinition.USEHORNETQSTORE
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] (AS7-4331) Management operations for accessing transaction logs should be exposed in the web console
by Heiko Braun (JIRA)
[ https://issues.jboss.org/browse/AS7-4331?page=com.atlassian.jira.plugin.s... ]
Heiko Braun updated AS7-4331:
-----------------------------
Attachment: (was: tx-participants.png)
> Management operations for accessing transaction logs should be exposed in the web console
> -----------------------------------------------------------------------------------------
>
> Key: AS7-4331
> URL: https://issues.jboss.org/browse/AS7-4331
> Project: Application Server 7
> Issue Type: Bug
> Components: Console
> Affects Versions: 7.1.1.Final
> Reporter: Michael Musgrove
> Assignee: Heiko Braun
> Fix For: No Release
>
> Attachments: tx-log-view.png, tx-log.txt
>
>
> Task AS7-925 provides CLI management operations for accessing transaction logs.
> We need the same information to be made available in the web console.
> The operations are part of the log store sub model:
> org.jboss.as.txn.subsystem.LogStoreAddHandler
> We also need to expose the attribute for switching our log store implementation:
> TransactionSubsystemRootResourceDefinition.USEHORNETQSTORE
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] (DROOLS-61) Classes with package protected visibility cannot be used in rules defined in the same package
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-61?page=com.atlassian.jira.plugin.... ]
Mario Fusco resolved DROOLS-61.
-------------------------------
Fix Version/s: 5.6
6.0.0.Alpha1
Resolution: Done
It is not possible to make this use case to work because both the drools compiler and mvel has no notion of the package to which a given rule, pattern, statement or expression belongs to.
I fixed this issue raising a proper compilation failure every time you use a non-public class inside a DRL.
> Classes with package protected visibility cannot be used in rules defined in the same package
> ---------------------------------------------------------------------------------------------
>
> Key: DROOLS-61
> URL: https://issues.jboss.org/browse/DROOLS-61
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Mario Fusco
> Assignee: Mario Fusco
> Fix For: 5.6, 6.0.0.Alpha1
>
>
> The following two files (foo/Foo.java, foo/foo.drl) are sufficient to
> reproduce the bug, i.e., a diagnostic
> Exception in thread "main" [Error: could not access field: foo.Foo.x]
> [Near : {... x == 1 ....}]
> {code}
> package foo;
> /*** not public ***/ class Foo {
> private int x = 1;
> public int getX(){ return x; }
> }
> package foo;
> rule "foo getX"
> when
> Foo( x == 1 )
> then
> System.out.println( "some Foo.x == 1" );
> end
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] (JGRP-1581) TP: passing messages up in batches (part II)
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1581?page=com.atlassian.jira.plugin.... ]
Bela Ban commented on JGRP-1581:
--------------------------------
Hmm, the more I think about it, the more I'm inclined to leave receive(MessageBatch) out of the Receiver interface. Also, I don't want to modify UpHandler for now.
The main reason is that I'm not sure applications would really benefit from this.
I can always add this later, perhaps in 4.0 where API breakage is allowed.
"If in doubt, leave it out" (Josh Bloch on API design)
> TP: passing messages up in batches (part II)
> --------------------------------------------
>
> Key: JGRP-1581
> URL: https://issues.jboss.org/browse/JGRP-1581
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 3.3
>
>
> Implement up(MessageBatch) in protocols above NAKACK2 and UNICAST2, plus in JChannel and (possibly) in MessageDispatcher and RequestCorrelator.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months