adammurdoch 2002/06/25 01:41:07
Modified: container/src/java/org/apache/myrmidon/components/deployer
RoleDescriptorBuilder.java
Log:
Don't need 'generic-role' attribute any more.
Revision Changes Path
1.13 +2 -11
jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/deployer/RoleDescriptorBuilder.java
Index: RoleDescriptorBuilder.java
===================================================================
RCS file:
/home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/deployer/RoleDescriptorBuilder.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- RoleDescriptorBuilder.java 25 Jun 2002 07:34:02 -0000 1.12
+++ RoleDescriptorBuilder.java 25 Jun 2002 08:41:07 -0000 1.13
@@ -55,16 +55,7 @@
final Configuration type = types[ i ];
final String shortName = type.getAttribute( "name" );
final String className = type.getAttribute( "interface" );
- final boolean isGenericRole = type.getAttributeAsBoolean(
"generic-role", false );
- final Class roleType;
- if( isGenericRole )
- {
- roleType = Object.class;
- }
- else
- {
- roleType = deployer.getClassLoader().loadClass( className );
- }
+ final Class roleType = deployer.getClassLoader().loadClass(
className );
final Map attrMap = new HashMap();
final String[] attrs = type.getAttributeNames();
for( int j = 0; j < attrs.length; j++ )
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>