com.smhumayun.mi_plus
Enum MIObjectScope

java.lang.Object
  extended by java.lang.Enum<MIObjectScope>
      extended by com.smhumayun.mi_plus.MIObjectScope
All Implemented Interfaces:
Serializable, Comparable<MIObjectScope>

public enum MIObjectScope
extends Enum<MIObjectScope>

Defines scopes for MI Container and Composed objects

Since:
1.0
Author:
smhumayun

Enum Constant Summary
PROTOTYPE_CONTAINER_PROTOTYPE_COMPOSED
          Every time a new MI Container object will be created which will contain their own distinct Composed objects
PROTOTYPE_CONTAINER_SINGLETON_COMPOSED
          Every time a new MI Container object will be created which will contain/share the same Composed objects
SINGLETON_CONTAINER_SINGLETON_COMPOSED
          Only one object of the MI Container will be created which will contain/share the same Composed objects
 
Method Summary
static MIObjectScope valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MIObjectScope[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SINGLETON_CONTAINER_SINGLETON_COMPOSED

public static final MIObjectScope SINGLETON_CONTAINER_SINGLETON_COMPOSED
Only one object of the MI Container will be created which will contain/share the same Composed objects


PROTOTYPE_CONTAINER_SINGLETON_COMPOSED

public static final MIObjectScope PROTOTYPE_CONTAINER_SINGLETON_COMPOSED
Every time a new MI Container object will be created which will contain/share the same Composed objects


PROTOTYPE_CONTAINER_PROTOTYPE_COMPOSED

public static final MIObjectScope PROTOTYPE_CONTAINER_PROTOTYPE_COMPOSED
Every time a new MI Container object will be created which will contain their own distinct Composed objects

Method Detail

values

public static MIObjectScope[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MIObjectScope c : MIObjectScope.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MIObjectScope valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2013–2015 Syed Muhammad Humayun - smhumayun@gmail.com. All rights reserved.