public void addContextDataFactory ( ContextDataFactory contextDataFactory ) { if ( contextDataFactory == null ) { throw new IllegalArgumentException ( "Parameter contextDataFactory must not be null." ) ; } this . contextDataFactories . add ( contextDataFactory ) ; if ( postInitialisation ) { for ( Context context : getSession ( ) . getContexts ( ) ) { contextDataFactory . loadContextData ( getSession ( ) , context ) ; } } }
Adds the given context data factory to the model .