public void start ( final StartContext context ) throws StartException { if ( store == null ) { final ServiceRegistry serviceRegistry = context . getController ( ) . getServiceContainer ( ) ; final ServiceName serviceNameBase = context . getController ( ) . getName ( ) ; final ServiceTarget serviceTarget = context . getChildTarget ( ) ; store = readOnly ? new ServiceBasedNamingStore ( serviceRegistry , serviceNameBase ) : new WritableServiceBasedNamingStore ( serviceRegistry , serviceNameBase , serviceTarget ) ; } }
Creates the naming store if not provided by the constructor .