@NotStorableClass public class InstanceFactory extends Object implements IInstanceFactory
Constructor and Description |
---|
InstanceFactory(ExclusiveDataAccessSession exclusiveDataAccessSession) |
Modifier and Type | Method and Description |
---|---|
Object |
newInstance(Class<?> objectClass) |
Object |
newInstance(Class<?> objectClass,
Class<?>[] parameterTypes,
Object[] initargs) |
public InstanceFactory(ExclusiveDataAccessSession exclusiveDataAccessSession)
public Object newInstance(Class<?> objectClass, Class<?>[] parameterTypes, Object[] initargs)
newInstance
in interface IInstanceFactory
objectClass
- the class of the object to createparameterTypes
- parameters type, see
Class.getConstructor(Class...)
initargs
- the construction parameters, see
Constructor.newInstance(Object...)
public Object newInstance(Class<?> objectClass)
newInstance
in interface IInstanceFactory
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.