Class StandaloneObjectFactory
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.objfac.StandaloneObjectFactory
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory
,org.pentaho.platform.api.engine.IPentahoObjectFactory
public class StandaloneObjectFactory extends Object implements org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory
-
-
Constructor Summary
Constructors Constructor Description StandaloneObjectFactory()
StandaloneObjectFactory(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineInstance(String key, Object instance)
void
defineObject(String key, String className, org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory.Scope scope)
void
defineObject(String key, String className, org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory.Scope scope, ClassLoader loader)
<T> T
get(Class<T> interfaceClass, String key, org.pentaho.platform.api.engine.IPentahoSession session)
<T> T
get(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession session)
<T> T
get(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession session, Map<String,String> properties)
<T> List<T>
getAll(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession)
<T> List<T>
getAll(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession, Map<String,String> properties)
Class
getImplementingClass(String key)
String
getName()
<T> org.pentaho.platform.api.engine.IPentahoObjectReference<T>
getObjectReference(Class<T> clazz, org.pentaho.platform.api.engine.IPentahoSession curSession)
<T> org.pentaho.platform.api.engine.IPentahoObjectReference<T>
getObjectReference(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession, Map<String,String> properties)
<T> List<org.pentaho.platform.api.engine.IPentahoObjectReference<T>>
getObjectReferences(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession)
<T> List<org.pentaho.platform.api.engine.IPentahoObjectReference<T>>
getObjectReferences(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession, Map<String,String> properties)
void
init(String arg0, Object arg1)
boolean
objectDefined(Class<?> clazz)
boolean
objectDefined(String key)
protected Object
retreiveObject(String key, org.pentaho.platform.api.engine.IPentahoSession session)
-
-
-
Constructor Detail
-
StandaloneObjectFactory
public StandaloneObjectFactory()
-
StandaloneObjectFactory
public StandaloneObjectFactory(String name)
-
-
Method Detail
-
get
public <T> T get(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession session) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
get
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
get
public <T> T get(Class<T> interfaceClass, String key, org.pentaho.platform.api.engine.IPentahoSession session) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
get
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
getImplementingClass
public Class getImplementingClass(String key)
- Specified by:
getImplementingClass
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
-
init
public void init(String arg0, Object arg1)
- Specified by:
init
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
-
objectDefined
public boolean objectDefined(String key)
- Specified by:
objectDefined
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
-
defineObject
public void defineObject(String key, String className, org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory.Scope scope)
- Specified by:
defineObject
in interfaceorg.pentaho.platform.api.engine.IPentahoDefinableObjectFactory
-
defineObject
public void defineObject(String key, String className, org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory.Scope scope, ClassLoader loader)
- Specified by:
defineObject
in interfaceorg.pentaho.platform.api.engine.IPentahoDefinableObjectFactory
-
retreiveObject
protected Object retreiveObject(String key, org.pentaho.platform.api.engine.IPentahoSession session) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
defineInstance
public void defineInstance(String key, Object instance)
- Specified by:
defineInstance
in interfaceorg.pentaho.platform.api.engine.IPentahoDefinableObjectFactory
-
getAll
public <T> List<T> getAll(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
getAll
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
getAll
public <T> List<T> getAll(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession, Map<String,String> properties) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
getAll
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
getObjectReference
public <T> org.pentaho.platform.api.engine.IPentahoObjectReference<T> getObjectReference(Class<T> clazz, org.pentaho.platform.api.engine.IPentahoSession curSession) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
getObjectReference
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
get
public <T> T get(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession session, Map<String,String> properties) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
get
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
objectDefined
public boolean objectDefined(Class<?> clazz)
- Specified by:
objectDefined
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
-
getObjectReference
public <T> org.pentaho.platform.api.engine.IPentahoObjectReference<T> getObjectReference(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession, Map<String,String> properties) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
getObjectReference
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
getObjectReferences
public <T> List<org.pentaho.platform.api.engine.IPentahoObjectReference<T>> getObjectReferences(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
getObjectReferences
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
getObjectReferences
public <T> List<org.pentaho.platform.api.engine.IPentahoObjectReference<T>> getObjectReferences(Class<T> interfaceClass, org.pentaho.platform.api.engine.IPentahoSession curSession, Map<String,String> properties) throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
getObjectReferences
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.pentaho.platform.api.engine.IPentahoObjectFactory
-
-