Package org.pentaho.platform.api.engine
Interface IPentahoRegistrableObjectFactory
- All Superinterfaces:
IPentahoObjectFactory
Supports the registration of new implementations with the IPentahoObjectFactory at runtime.
Created by nbaker on 4/15/14.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The types that the Object instance or IPentahoObjectReference can be registered under. -
Field Summary
Fields inherited from interface org.pentaho.platform.api.engine.IPentahoObjectFactory
DEFAULT_PRIORTIY
-
Method Summary
Modifier and TypeMethodDescriptionregisterObject
(T obj) Register an Object instance with the ObjectFactory.registerObject
(T obj, Class<?>... classes) Register an Object instance with the ObjectFactory for the given classesregisterObject
(T obj, IPentahoRegistrableObjectFactory.Types types) Register an Object instance with the ObjectFactory for the given typesregisterReference
(IPentahoObjectReference<T> reference) Register an IPentahoObjectReference with the factory under Types.ALLregisterReference
(IPentahoObjectReference<T> reference, Class<?>... classes) Register an IPentahoObjectReference with the factory for the given Types.registerReference
(IPentahoObjectReference<T> reference, IPentahoRegistrableObjectFactory.Types types) Register an IPentahoObjectReference with the factory for the given Types.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 Details
-
registerObject
Register an Object instance with the ObjectFactory. It will be registered implicitly under Types.ALL- Parameters:
obj
-- Returns:
- a IPentahoObjectRegistration handle allowing de-registration later
-
registerObject
Register an Object instance with the ObjectFactory for the given types- Parameters:
obj
-types
-- Returns:
- a IPentahoObjectRegistration handle allowing de-registration later
-
registerObject
Register an Object instance with the ObjectFactory for the given classes- Parameters:
obj
-classes
-- Returns:
- a IPentahoObjectRegistration handle allowing de-registration later
-
registerReference
Register an IPentahoObjectReference with the factory under Types.ALL- Type Parameters:
T
- Type of the object described by this reference.- Parameters:
reference
- IPentahoObjectReference to be registered- Returns:
- a IPentahoObjectRegistration handle allowing de-registration later
-
registerReference
<T> IPentahoObjectRegistration registerReference(IPentahoObjectReference<T> reference, IPentahoRegistrableObjectFactory.Types types) Register an IPentahoObjectReference with the factory for the given Types.- Type Parameters:
T
- Type of the object described by this reference.- Parameters:
reference
- IPentahoObjectReference to be registeredtypes
- Types to be registered under.
-
registerReference
<T> IPentahoObjectRegistration registerReference(IPentahoObjectReference<T> reference, Class<?>... classes) Register an IPentahoObjectReference with the factory for the given Types.- Type Parameters:
T
- Type of the object described by this reference.- Parameters:
reference
- IPentahoObjectReference to be registeredclasses
- Classes to be registered under.- Returns:
- a IPentahoObjectRegistration handle allowing de-registration later
-