Package org.pentaho.platform.api.engine
Interface IPentahoRegistrableObjectFactory
-
- All Superinterfaces:
IPentahoObjectFactory
public interface IPentahoRegistrableObjectFactory extends IPentahoObjectFactory
Supports the registration of new implementations with the IPentahoObjectFactory at runtime. Created by nbaker on 4/15/14.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IPentahoRegistrableObjectFactory.Types
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> IPentahoObjectRegistration
registerObject(T obj)
Register an Object instance with the ObjectFactory.<T> IPentahoObjectRegistration
registerObject(T obj, Class<?>... classes)
Register an Object instance with the ObjectFactory for the given classes<T> IPentahoObjectRegistration
registerObject(T obj, IPentahoRegistrableObjectFactory.Types types)
Register an Object instance with the ObjectFactory for the given types<T> IPentahoObjectRegistration
registerReference(IPentahoObjectReference<T> reference)
Register an IPentahoObjectReference with the factory under Types.ALL<T> IPentahoObjectRegistration
registerReference(IPentahoObjectReference<T> reference, Class<?>... classes)
Register an IPentahoObjectReference with the factory for the given Types.<T> IPentahoObjectRegistration
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 Detail
-
registerObject
<T> IPentahoObjectRegistration registerObject(T obj)
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
<T> IPentahoObjectRegistration registerObject(T obj, IPentahoRegistrableObjectFactory.Types types)
Register an Object instance with the ObjectFactory for the given types- Parameters:
obj
-types
-- Returns:
- a IPentahoObjectRegistration handle allowing de-registration later
-
registerObject
<T> IPentahoObjectRegistration registerObject(T obj, Class<?>... classes)
Register an Object instance with the ObjectFactory for the given classes- Parameters:
obj
-classes
-- Returns:
- a IPentahoObjectRegistration handle allowing de-registration later
-
registerReference
<T> IPentahoObjectRegistration registerReference(IPentahoObjectReference<T> reference)
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
-
-