Package org.pentaho.platform.api.engine
Interface IPentahoDefinableObjectFactory
-
- All Superinterfaces:
IPentahoObjectFactory
public interface IPentahoDefinableObjectFactory extends IPentahoObjectFactory
Deprecated.Use the newIPentahoRegistrableObjectFactory
facilities available in PentahoSystemThis 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
Nested Classes Modifier and Type Interface Description static class
IPentahoDefinableObjectFactory.Scope
Deprecated.The different object scopes that are supported
-
Field Summary
-
Fields inherited from interface org.pentaho.platform.api.engine.IPentahoObjectFactory
DEFAULT_PRIORTIY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
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 classloader-
Methods inherited from interface org.pentaho.platform.api.engine.IPentahoObjectFactory
get, get, get, getAll, getAll, getImplementingClass, getName, getObjectReference, getObjectReference, getObjectReferences, getObjectReferences, init, objectDefined, objectDefined
-
-
-
-
Method Detail
-
defineObject
void defineObject(String key, String className, IPentahoDefinableObjectFactory.Scope scope)
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
-
-