178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson/**
278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * Copyright 2006-2013 the original author or authors.
378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson *
478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * Licensed under the Apache License, Version 2.0 (the "License");
578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * you may not use this file except in compliance with the License.
678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * You may obtain a copy of the License at
778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson *
878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson *     http://www.apache.org/licenses/LICENSE-2.0
978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson *
1078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * Unless required by applicable law or agreed to in writing, software
1178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * distributed under the License is distributed on an "AS IS" BASIS,
1278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * See the License for the specific language governing permissions and
1478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * limitations under the License.
1578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson */
1678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinsonpackage org.objenesis.strategy;
1778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
1878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinsonimport org.objenesis.instantiator.ObjectInstantiator;
1978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
2078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson/**
2178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * Defines a strategy to determine the best instantiator for a class.
2278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson *
2378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson * @author Henri Tremblay
2478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson */
2578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinsonpublic interface InstantiatorStrategy {
2678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
2778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   /**
2878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson    * Create a dedicated instantiator for the given class
2978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson    *
3078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson    * @param type Class that will be instantiate
3178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson    * @return Dedicated instantiator
3278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson    */
3378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   ObjectInstantiator newInstantiatorOf(Class type);
3478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson}
35