public boolean loadClasses ( ) { Boolean result = AccessController . doPrivileged ( new PrivilegedAction < Boolean > ( ) { @ Override public Boolean run ( ) { Policy policy = jaccProviderService . getService ( ) . getPolicy ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "policy object" + policy ) ; // in order to support the CTS provider, Policy object should be set prior to // instanciate PolicyConfigFactory class. if ( policy == null ) { Exception e = new Exception ( "Policy object is null." ) ; Tr . error ( tc , "JACC_POLICY_INSTANTIATION_FAILURE" , new Object [ ] { policyName , e } ) ; return Boolean . FALSE ; } try { Policy . setPolicy ( policy ) ; policy . refresh ( ) ; } catch ( ClassCastException cce ) { Tr . error ( tc , "JACC_POLICY_INSTANTIATION_FAILURE" , new Object [ ] { policyName , cce } ) ; return Boolean . FALSE ; } pcf = jaccProviderService . getService ( ) . getPolicyConfigFactory ( ) ; if ( pcf != null ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "factory object : " + pcf ) ; PolicyConfigurationManager . initialize ( policy , pcf ) ; } else { Tr . error ( tc , "JACC_FACTORY_INSTANTIATION_FAILURE" , new Object [ ] { factoryName } ) ; return Boolean . FALSE ; } return Boolean . TRUE ; } } ) ; return result . booleanValue ( ) ; }
Loads the JACC Policy and Factory classes .