org.jsesoft.ri
Class InspectorFactory
java.lang.Object
org.jsesoft.ri.InspectorFactory
public class InspectorFactory
- extends java.lang.Object
Provides a factory for inspectors.
Constructor Summary |
InspectorFactory(java.lang.Class<?>... inspectorTypes)
Creates new InspectorFactory. |
Method Summary |
Inspector<?> |
create(InspectorType type,
java.lang.Object[] args,
java.lang.Class<?>... paramTypes)
Provides inspector of given type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InspectorFactory
public InspectorFactory(java.lang.Class<?>... inspectorTypes)
- Creates new InspectorFactory.
- Parameters:
inspectorTypes
- the actual inspector types to create
create
public Inspector<?> create(InspectorType type,
java.lang.Object[] args,
java.lang.Class<?>... paramTypes)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
- Provides inspector of given type.
- Parameters:
type
- the inspector typeargs
- the constructor argumentsparamTypes
- the constructor's parameter types
- Returns:
- the created inspector
- Throws:
java.lang.IllegalAccessException
- on creation failure
java.lang.InstantiationException
- on creation failure
java.lang.NoSuchMethodException
- on missing constructor
java.lang.SecurityException
- on no permission
java.lang.reflect.InvocationTargetException
- on constructor invocation failure
java.lang.IllegalArgumentException
- on illegal constructor arguments
Copyright © 2010 JSESoft. All Rights Reserved.