IClassInstantiator (EasyMock 3.1 API)
Date: 2011-11-10

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.easymock.internal
Interface IClassInstantiator

All Known Implementing Classes:
  DefaultClassInstantiator, ObjenesisClassInstantiator

    public interface IClassInstantiator

Used to instantiate a given class.

Author:
  Henri Tremblay

Method Summary
`Object` | `newInstance(Class<?> clazz)` Return a new instance of the specified class.

Method Detail

### newInstance

    Object newInstance(Class<?> clazz)
                       throws InstantiationException

  Return a new instance of the specified class. The recommended way is without calling any constructor. This is usually done by doing like `ObjectInputStream.readObject()` which is JVM specific.

  Parameters:
    `clazz` - class to instantiate
  Returns:
    new instance of clazz
  Throws:
    `InstantiationException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2011 OFFIS, Tammo Freese, Henri Tremblay. All Rights Reserved.