1 17 18 package org.apache.avalon.fortress.impl.role; 19 20 import org.apache.avalon.framework.activity.Initializable; 21 22 29 public final class FortressRoleManager 30 extends org.apache.avalon.fortress.impl.role.AbstractRoleManager 31 implements Initializable 32 { 33 36 public FortressRoleManager() 37 { 38 this( null ); 39 } 40 41 47 public FortressRoleManager( final org.apache.avalon.fortress.RoleManager parent ) 48 { 49 this( parent, null ); 50 } 51 52 59 public FortressRoleManager( final org.apache.avalon.fortress.RoleManager parent, final ClassLoader loader ) 60 { 61 super( parent, loader ); 62 } 63 64 67 public void initialize() 68 { 69 70 addRole( "jdbc-datasource", 71 "org.apache.avalon.excalibur.datasource.DataSourceComponent", 72 "org.apache.avalon.excalibur.datasource.JdbcDataSource", 73 "org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler" ); 74 addRole( "j2ee-datasource", 75 "org.apache.avalon.excalibur.datasource.DataSourceComponent", 76 "org.apache.avalon.excalibur.datasource.J2eeDataSource", 77 "org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler" ); 78 addRole( "informix-datasource", 79 "org.apache.avalon.excalibur.datasource.DataSourceComponent", 80 "org.apache.avalon.excalibur.datasource.InformixDataSource", 81 "org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler" ); 82 83 84 addRole( "monitor", 85 "org.apache.avalon.excalibur.monitor.Monitor", 86 "org.apache.avalon.excalibur.monitor.ActiveMonitor", 87 "org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler" ); 88 addRole( "passive-monitor", 89 "org.apache.avalon.excalibur.monitor.Monitor", 90 "org.apache.avalon.excalibur.monitor.PassiveMonitor", 91 "org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler" ); 92 93 94 addRole( "xalan-xpath", 95 "org.apache.excalibur.xml.xpath.XPathProcessor", 96 "org.apache.excalibur.xml.xpath.XPathProcessorImpl", 97 "org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler" ); 98 addRole( "jaxpath", 99 "org.apache.excalibur.xml.xpath.XPathProcessor", 100 "org.apache.excalibur.xml.xpath.JaxenProcessorImpl", 101 "org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler" ); 102 103 104 addRole( "resolver", 105 "org.apache.excalibur.source.SourceResolver", 106 "org.apache.excalibur.source.impl.SourceResolverImpl", 107 "org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler" ); 108 109 110 addRole( "parser", 111 "org.apache.excalibur.xml.dom.DOMParser", 112 "org.apache.excalibur.xml.impl.JaxpParser", 113 "org.apache.avalon.fortress.impl.handler.PerThreadComponentHandler" ); 114 addRole( "xerces-parser", 115 "org.apache.excalibur.xml.dom.DOMParser", 116 "org.apache.excalibur.xml.impl.XercesParser", 117 "org.apache.avalon.fortress.impl.handler.FactoryComponentHandler" ); 118 } 119 } 120 121 | Popular Tags |