| 
01 /*02  * Copyright 2008-2015 the original author or authors.
 03  *
 04  * Licensed under the Apache License, Version 2.0 (the "License");
 05  * you may not use this file except in compliance with the License.
 06  * You may obtain a copy of the License at
 07  *
 08  *     http://www.apache.org/licenses/LICENSE-2.0
 09  *
 10  * Unless required by applicable law or agreed to in writing, software
 11  * distributed under the License is distributed on an "AS IS" BASIS,
 12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  * See the License for the specific language governing permissions and
 14  * limitations under the License.
 15  */
 16 package griffon.util;
 17
 18 import groovy.lang.Closure;
 19 import groovy.util.Factory;
 20
 21 import javax.annotation.Nonnull;
 22 import javax.annotation.Nullable;
 23 import java.util.List;
 24 import java.util.Map;
 25
 26 /**
 27  * @author Andres Almiray
 28  * @since 2.0.0
 29  */
 30 @SuppressWarnings("rawtypes")
 31 public interface BuilderCustomizer {
 32     @Nonnull
 33     Map<String, Object> getVariables();
 34
 35     @Nonnull
 36     Map<String, Factory> getFactories();
 37
 38     @Nonnull
 39     Map<String, Closure> getMethods();
 40
 41     @Nonnull
 42     Map<String, Closure[]> getProps();
 43
 44     @Nonnull
 45     List<Closure> getAttributeDelegates();
 46
 47     @Nonnull
 48     List<Closure> getPreInstantiateDelegates();
 49
 50     @Nonnull
 51     List<Closure> getPostInstantiateDelegates();
 52
 53     @Nonnull
 54     List<Closure> getPostNodeCompletionDelegates();
 55
 56     @Nonnull
 57     List<Closure> getDisposalClosures();
 58
 59     @Nullable
 60     Closure getMethodMissingDelegate();
 61
 62     @Nullable
 63     Closure getPropertyMissingDelegate();
 64 }
 |