Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for hookFn (0.08 sec)

  1. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        private final List<Thread> hooks = new ArrayList<>();
    
        @Override
        synchronized void addShutdownHook(Thread hook) {
          hooks.add(hook);
        }
    
        synchronized void shutdown() throws InterruptedException {
          for (Thread hook : hooks) {
            hook.start();
          }
          for (Thread hook : hooks) {
            hook.join();
          }
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                langItems.add(defaultMap);
                return langItems;
            }
        }
    
        /**
         * Adds a shutdown hook.
         *
         * @param hook The shutdown hook to add.
         */
        public void addShutdownHook(final Runnable hook) {
            shutdownHookList.add(hook);
        }
    
        /**
         * Gets the hostname of the local machine.
         *
         * @return The hostname.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  3. callbacks/create.go

    package callbacks
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils"
    )
    
    // BeforeCreate before create hooks
    func BeforeCreate(db *gorm.DB) {
    	if db.Error == nil && db.Statement.Schema != nil && !db.Statement.SkipHooks && (db.Statement.Schema.BeforeSave || db.Statement.Schema.BeforeCreate) {
    		callMethod(db, func(value interface{}, tx *gorm.DB) (called bool) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 29 11:06:13 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. schema/schema.go

    					// PASS
    				}
    			default:
    				logger.Default.Warn(context.Background(), "Model %v don't match %vInterface, should be `%v(*gorm.DB) error`. Please see https://gorm.io/docs/hooks.html", schema, cbName, cbName)
    			}
    		}
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 19 06:35:49 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java

         *
         * @param form the create form containing the item data
         * @param hook the validation error hook
         * @return optional entity containing the created stopwords item
         */
        public static OptionalEntity<StopwordsItem> createStopwordsItem(final CreateForm form, final VaErrorHook hook) {
            return getEntity(form).map(entity -> {
                final String newInput = form.input;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

         * Create a char mapping item.
         * @param form The create form.
         * @param hook The error hook.
         * @return An optional entity of a char mapping item.
         */
        protected OptionalEntity<CharMappingItem> createCharMappingItem(final CreateForm form, final VaErrorHook hook) {
            try {
                return createCharMappingItem(this, form, hook);
            } catch (final ValidationErrorException e) {
                saveToken();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

        //                                                                               Hook
        //                                                                              ======
        // to suppress unexpected override by sub-class
        // you should remove the 'final' if you need to override this
        /**
         * Hook method called before action execution.
         * This method refreshes the user information if a user is logged in
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java

        /**
         * Get the protected word item.
         * @param form The create form.
         * @param hook The error hook.
         * @return The protected word item.
         */
        protected OptionalEntity<ProtwordsItem> createProtwordsItem(final CreateForm form, final VaErrorHook hook) {
            try {
                return createProtwordsItem(this, form, hook);
            } catch (final ValidationErrorException e) {
                saveToken();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java

         * @param hook the validation error hook for handling errors
         * @return OptionalEntity containing the created synonym item or empty if creation failed
         */
        protected OptionalEntity<SynonymItem> createSynonymItem(final CreateForm form, final VaErrorHook hook) {
            try {
                return createSynonymItem(this, form, hook);
            } catch (final ValidationErrorException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 23.7K bytes
    - Viewed (1)
  10. helm-releases/minio-2.0.1.tgz

    "minio.fullname" . }}-make-bucket-job labels: app: {{ template "minio.name" . }}-make-bucket-job chart: {{ template "minio.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation {{- with .Values.makeBucketJob.annotations }} {{ toYaml . | indent 4 }} {{- end }} spec: template: metadata: labels: app: {{ template "minio.name" . }}-job release: {{ .Release.Name }} {{- if .Values.podLabels...
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 31 09:09:09 UTC 2021
    - 13.6K bytes
    - Viewed (0)
Back to top