public void init ( LoggerContext defaultLoggerContext , Object key ) throws ClassNotFoundException , NoSuchMethodException , InstantiationException , IllegalAccessException , InvocationTargetException { if ( this . key == null ) { this . key = key ; } else if ( this . key != key ) { throw new IllegalAccessException ( "Only certain classes can access this method." ) ; } String contextSelectorStr = OptionHelper . getSystemProperty ( ClassicConstants . LOGBACK_CONTEXT_SELECTOR ) ; if ( contextSelectorStr == null ) { contextSelector = new DefaultContextSelector ( defaultLoggerContext ) ; } else if ( contextSelectorStr . equals ( "JNDI" ) ) { throw new RuntimeException ( "JNDI not supported" ) ; } else { contextSelector = dynamicalContextSelector ( defaultLoggerContext , contextSelectorStr ) ; } }
FOR INTERNAL USE . This method is intended for use by StaticLoggerBinder .