View Javadoc

1   /**
2    * Project MI+
3    *
4    * Copyright (c) 2013, Syed Muhammad Humayun - smhumayun@gmail.com
5    *
6    * This project includes software developed by Syed Muhammad Humayun - smhumayun@gmail.com
7    * http://www.smhumayun.com
8    *
9    * Licensed under the Apache License, Version 2.0 (the
10   * "License"); you may not use this file except in compliance
11   * with the License. You may obtain a copy of the License at:
12   *
13   * http://www.apache.org/licenses/LICENSE-2.0
14   *
15   * Unless required by applicable law or agreed to in writing,
16   * software distributed under the License is distributed on
17   * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18   * KIND, either express or implied. See the License for the
19   * specific language governing permissions and limitations
20   * under the License.
21   */
22  package com.smhumayun.mi_plus;
23  
24  /**
25   * Defines scopes for MI Container and Composed objects
26   *
27   * @author smhumayun
28   * @since 1.0
29   */
30  public enum MIObjectScope {
31  
32      /**
33       * Only one object of the MI Container will be created which will contain/share the same Composed objects
34       */
35      SINGLETON_CONTAINER_SINGLETON_COMPOSED
36  
37      ,
38      /**
39       * Every time a new MI Container object will be created which will contain/share the same Composed objects
40       */
41      PROTOTYPE_CONTAINER_SINGLETON_COMPOSED
42  
43      ,
44      /**
45       * Every time a new MI Container object will be created which will contain their own distinct Composed objects
46       */
47      PROTOTYPE_CONTAINER_PROTOTYPE_COMPOSED
48  
49  }