public void setLoggerRepository ( final LoggerRepository repository ) { if ( this . repository == null ) { this . repository = repository ; } else if ( this . repository != repository ) { throw new IllegalStateException ( "Repository has been already set" ) ; } }
Set the owning repository . The owning repository cannot be set more than once .