From ant-dev-return-34636-qmlist-jakarta-archive-ant-dev=jakarta.apache.org@jakarta.apache.org Tue Jun 25 08:41:19 2002 Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 36909 invoked from network); 25 Jun 2002 08:41:19 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Jun 2002 08:41:19 -0000 Received: (qmail 15900 invoked by uid 97); 25 Jun 2002 08:41:32 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 15857 invoked by uid 97); 25 Jun 2002 08:41:32 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 15826 invoked by uid 97); 25 Jun 2002 08:41:31 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 25 Jun 2002 08:41:07 -0000 Message-ID: <20020625084107.2113.qmail@icarus.apache.org> From: adammurdoch@apache.org To: jakarta-ant-myrmidon-cvs@apache.org Subject: cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/deployer RoleDescriptorBuilder.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: