/** * Creates a new instance of an AbstractLdapConnection */ protected AbstractLdapConnection() { this( LdapApiServiceFactory.getSingleton() ); }
/** * Gets the singleton instance of the LdapCodecService. * * @return a valid instance implementation based on environment and the * availability of bindings. */ public static LdapApiService getSingleton() { if ( ldapCodecService == null ) { initialize( null ); } return ldapCodecService; }
/** * Checks to see if the factory is using the standalone implementation. * * @return true if using the standalone implementation, false otherwise. */ public static boolean isUsingStandaloneImplementation() { if ( !isInitialized() ) { String msg = I18n.err( I18n.ERR_05200_NOT_INITIALIZED_YET ); LOG.error( msg ); throw new IllegalStateException( msg ); } return usingStandaloneImplementation; }
LdapApiService ldapApiService = new StandaloneLdapApiService( new ArrayList<String>(), listExOps ); if ( !LdapApiServiceFactory.isInitialized() ) LdapApiServiceFactory.initialize( ldapApiService );
/** * Creates a new instance of LdapProtocolEncoder. */ public LdapProtocolEncoder() { this( LdapApiServiceFactory.getSingleton() ); }
/** * Gets the singleton instance of the LdapCodecService. * * @return a valid instance implementation based on environment and the * availability of bindings. */ public static LdapApiService getSingleton() { if ( ldapCodecService == null ) { initialize( null ); } return ldapCodecService; }
/** * Checks to see if the factory is using the standalone implementation. * * @return true if using the standalone implementation, false otherwise. */ public static boolean isUsingStandaloneImplementation() { if ( !isInitialized() ) { String msg = I18n.err( I18n.ERR_05200_NOT_INITIALIZED_YET ); LOG.error( msg ); throw new IllegalStateException( msg ); } return usingStandaloneImplementation; }
/** * * Creates a new instance of LdapConnection with the given connection configuration. * * @param config the configuration of the LdapConnection */ public LdapNetworkConnection( LdapConnectionConfig config ) { this( config, LdapApiServiceFactory.getSingleton() ); }
/** * Gets the singleton instance of the LdapCodecService. * * @return a valid instance implementation based on environment and the * availability of bindings. */ public static LdapApiService getSingleton() { if ( ldapCodecService == null ) { initialize( null ); } return ldapCodecService; }
/** * Checks to see if the factory is using the standalone implementation. * * @return true if using the standalone implementation, false otherwise. */ public static boolean isUsingStandaloneImplementation() { if ( !isInitialized() ) { String msg = I18n.err( I18n.ERR_05200_NOT_INITIALIZED_YET ); LOG.error( msg ); throw new IllegalStateException( msg ); } return usingStandaloneImplementation; }
/** * Creates a new instance of an AbstractLdapConnection */ protected AbstractLdapConnection() { this( LdapApiServiceFactory.getSingleton() ); }
/** * {@inheritDoc} */ @Override public void start( BundleContext bundleContext ) throws Exception { registration = bundleContext.registerService( LdapApiService.class.getName(), codec, null ); LdapApiServiceFactory.initialize( codec ); }
/** * Creates a new instance of LdapProtocolCodecFactory. */ public LdapProtocolCodecFactory() { this( LdapApiServiceFactory.getSingleton() ); }
/** * {@inheritDoc} */ @Override public void start( BundleContext bundleContext ) throws Exception { registration = bundleContext.registerService( LdapApiService.class.getName(), codec, null ); LdapApiServiceFactory.initialize( codec ); }
/** * Creates a new instance of LdapProtocolCodecFactory. */ public LdapProtocolCodecFactory() { this( LdapApiServiceFactory.getSingleton() ); }
/** * {@inheritDoc} */ @Override public void start( BundleContext bundleContext ) throws Exception { registration = bundleContext.registerService( LdapApiService.class.getName(), codec, null ); LdapApiServiceFactory.initialize( codec ); }
/** * Creates a new instance of LdapProtocolEncoder. */ public LdapProtocolEncoder() { this( LdapApiServiceFactory.getSingleton() ); }
/** * Creates a new instance of LdapProtocolEncoder. */ public LdapProtocolEncoder() { this( LdapApiServiceFactory.getSingleton() ); }
/** * * Creates a new instance of LdapConnection with the given connection configuration. * * @param config the configuration of the LdapConnection */ public LdapNetworkConnection( LdapConnectionConfig config ) { this( config, LdapApiServiceFactory.getSingleton() ); }
/** * * Creates a new instance of LdapConnection with the given connection configuration. * * @param config the configuration of the LdapConnection */ public LdapNetworkConnection( LdapConnectionConfig config ) { this( config, LdapApiServiceFactory.getSingleton() ); }