[jboss-cvs] JBossAS SVN: r68315 - in trunk: testsuite/src/resources/test-configs/jacc/deployers and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Dec 15 13:00:33 EST 2007
Author: scott.stark at jboss.org
Date: 2007-12-15 13:00:33 -0500 (Sat, 15 Dec 2007)
New Revision: 68315
Added:
trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-beans.xml
Removed:
trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-service.xml
Modified:
trunk/build/build-thirdparty.xml
Log:
JBAS-5054, ensure singleton creation of the DelgatingPolicy bean
Modified: trunk/build/build-thirdparty.xml
===================================================================
--- trunk/build/build-thirdparty.xml 2007-12-15 17:33:24 UTC (rev 68314)
+++ trunk/build/build-thirdparty.xml 2007-12-15 18:00:33 UTC (rev 68315)
@@ -98,7 +98,7 @@
<componentref name="jboss/jboss-jaspi-api" version="1.0-BETA1"/>
<componentref name="jboss/jboss-javaee" version="5.0.0.Beta3Update1"/>
<componentref name="jboss/jboss-security-spi" version="2.0.2.Beta1"/>
- <componentref name="jboss/jbosssx" version="2.0.2.beta"/>
+ <componentref name="jboss/jbosssx" version="2.0.2.beta1"/>
<componentref name="jboss/jbosssx-client" version="2.0.2.beta"/>
<componentref name="jboss/jbossts" version="4.3.0.BETA2"/>
<componentref name="jboss/jboss-vfs" version="2.0.0.Beta6"/>
Added: trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-beans.xml
===================================================================
--- trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-beans.xml (rev 0)
+++ trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-beans.xml 2007-12-15 18:00:33 UTC (rev 68315)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ JACC configuration
+ $Id$
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+ <bean name="JaccPolicyProvider"
+ class="org.jboss.security.jacc.DelegatingPolicy">
+ <constructor factoryMethod="getInstance"
+ factoryClass="org.jboss.security.jacc.DelegatingPolicy"/>
+ </bean>
+
+ <bean class="org.jboss.security.jacc.SecurityService"
+ name="JaccSecurityService">
+ <property name="policy"><inject bean="JaccPolicyProvider" property="policyProxy"/></property>
+ </bean>
+</deployment>
Property changes on: trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-beans.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Deleted: trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-service.xml
===================================================================
--- trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-service.xml 2007-12-15 17:33:24 UTC (rev 68314)
+++ trunk/testsuite/src/resources/test-configs/jacc/deployers/jacc-service.xml 2007-12-15 18:00:33 UTC (rev 68315)
@@ -1,58 +0,0 @@
-
-<server>
- <mbean code="org.jboss.security.jacc.DelegatingPolicy"
- name="jboss.security:service=JaccPolicyProvider"
- xmbean-dd="">
- <xmbean>
- <attribute access="read-only" getMethod="getPolicyProxy">
- <description>The java.security.Policy implementation</description>
- <name>PolicyProxy</name>
- <type>java.security.Policy</type>
- </attribute>
- <attribute access="read-write" getMethod="getExternalPermissionTypes"
- setMethod="setExternalPermissionTypes">
- <description>The types of non-javax.security.jacc permissions that
- should be validated against this policy</description>
- <name>ExternalPermissionTypes</name>
- <type>[Ljava.lang.Class;</type>
- </attribute>
- <operation>
- <name>listContextPolicies</name>
- <return-type>java.lang.String</return-type>
- </operation>
- </xmbean>
- <!-- Not used, just here to test that custom permissions don't break the
- current behavior of javax.security.jacc.* permissions.
- <attribute name="ExternalPermissionTypes">org.jboss.security.srp.SRPPermission</attribute>
- -->
- </mbean>
- <mbean code="org.jboss.security.jacc.SecurityService"
- name="jboss.security:service=JaccSecurityService"
- xmbean-dd="">
- <xmbean>
- <descriptors>
- <injection id="MBeanServerType" setMethod="setMBeanServer" />
- <injection id="ObjectNameType" setMethod="setObjectName" />
- </descriptors>
- <attribute access="read-write" getMethod="getPolicyName" setMethod="setPolicyName">
- <description>The policy provider MBean name</description>
- <name>PolicyName</name>
- <type>javax.management.ObjectName</type>
- </attribute>
- <attribute access="read-write" getMethod="getPolicyAttributeName"
- setMethod="setPolicyAttributeName">
- <description>The Policy attribute name on the PolicyName MBean</description>
- <name>PolicyAttributeName</name>
- <type>java.lang.String</type>
- </attribute>
- <operation>
- <name>start</name>
- </operation>
- <operation>
- <name>stop</name>
- </operation>
- </xmbean>
- <attribute name="PolicyName">jboss.security:service=JaccPolicyProvider</attribute>
- <attribute name="PolicyAttributeName">PolicyProxy</attribute>
- </mbean>
-</server>
More information about the jboss-cvs-commits
mailing list