Package org.jboss.security.mapping.config

Source Code of org.jboss.security.mapping.config.RoleMappingConfigContainer

/*    */ package org.jboss.security.mapping.config;
/*    */
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import javax.xml.namespace.QName;
/*    */ import org.jboss.logging.Logger;
/*    */ import org.jboss.security.config.MappingInfo;
/*    */ import org.jboss.security.config.RoleMappingInfo;
/*    */ import org.jboss.xb.binding.GenericValueContainer;
/*    */
/*    */ public class RoleMappingConfigContainer
/*    */   implements GenericValueContainer
/*    */ {
/* 45 */   private static Logger log = Logger.getLogger(RoleMappingConfigContainer.class);
/*    */
/* 47 */   private List moduleEntries = new ArrayList();
/*    */
/*    */   public void addChild(QName name, Object value)
/*    */   {
/* 54 */     if (log.isTraceEnabled())
/* 55 */       log.trace("addChild:Qname=" + name + ":value=" + value);
/* 56 */     if ((value instanceof MappingModuleEntry))
/*    */     {
/* 58 */       this.moduleEntries.add(value);
/*    */     }
/*    */   }
/*    */
/*    */   public Object instantiate()
/*    */   {
/* 71 */     MappingInfo ri = new RoleMappingInfo("dummy");
/* 72 */     ri.add(this.moduleEntries);
/* 73 */     return ri;
/*    */   }
/*    */
/*    */   public Class getTargetClass()
/*    */   {
/* 81 */     return RoleMappingInfo.class;
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.security.mapping.config.RoleMappingConfigContainer
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.security.mapping.config.RoleMappingConfigContainer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.