Package org.pentaho.platform.api.engine
Interface IPentahoDefinableObjectFactory
- All Superinterfaces:
IPentahoObjectFactory
Deprecated.
This class subclasses IPentahoObjectFactory and adds methods that enables the implementation to allow objects to be
defined through public classes. The main use case for this is a system where the objects created by the factory are
defined in code via an API. Examples are when the Pentaho system is fully embedded into an application, and unit
tests.
- Author:
- jamesdixon
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Deprecated.The different object scopes that are supported -
Field Summary
Fields inherited from interface org.pentaho.platform.api.engine.IPentahoObjectFactory
DEFAULT_PRIORTIY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
defineInstance
(String key, Object instance) Deprecated.Defines a new object instance.void
defineObject
(String key, String className, IPentahoDefinableObjectFactory.Scope scope) Deprecated.Defines a new object.void
defineObject
(String key, String className, IPentahoDefinableObjectFactory.Scope scope, ClassLoader loader) Deprecated.Defines a new object that must be loaded with a specific classloaderMethods inherited from interface org.pentaho.platform.api.engine.IPentahoObjectFactory
get, get, get, getAll, getAll, getImplementingClass, getName, getObjectReference, getObjectReference, getObjectReferences, getObjectReferences, init, objectDefined, objectDefined
-
Method Details
-
defineObject
Deprecated.Defines a new object.- Parameters:
key
- - typically the interface nameclassName
- - the name of the class to instatiatescope
- - the scope of the object
-
defineObject
void defineObject(String key, String className, IPentahoDefinableObjectFactory.Scope scope, ClassLoader loader) Deprecated.Defines a new object that must be loaded with a specific classloader- Parameters:
key
- - typically the interface nameclassName
- - the name of the class to instatiatescope
- - the scope of the objectloader
- - the loader to be used to create the class
-
defineInstance
Deprecated.Defines a new object instance.- Parameters:
key
- - typically the interface nameinstance
- - the object instance to return when asked for by key
-
IPentahoRegistrableObjectFactory
facilities available in PentahoSystem