com.ibm.portal.resolver.cor
Interface ContentOperationsRegistryDependencies


public interface ContentOperationsRegistryDependencies

Callback interface that allows to resolve system dependencies to portal services automatically.

Since:
6.0.2

Method Summary
<T> T
createDependencies(java.lang.Class<T> cls, java.lang.Object other, java.lang.String filter)
          Constructs an object instance that implements the interface specified by the cls parameter.
<T> T
createDependencies(java.lang.Class<T> cls, java.lang.String filter)
          Constructs an object instance that implements the interface specified by the cls parameter.
<T> T
getDependency(java.lang.Class<T> cls, java.lang.String filter)
          Resolves a dependency
 

Method Detail

createDependencies

<T> T createDependencies(java.lang.Class<T> cls,
                         java.lang.Object other,
                         java.lang.String filter)
                     throws java.lang.UnsupportedOperationException
Constructs an object instance that implements the interface specified by the cls parameter. All getter methods are resolved by checks against the other object or calls to getDependency(Class, String), all other methods throw an exception.

Parameters:
cls - the interface classe, typically a dependency injection interface
other - if this object implements properties that are required by the dependency interface, these properties will be used, instead of trying a resolution via getDependency(Class, String).
filter - some filter string, may be null
Returns:
the implementation of the interface
Throws:
java.lang.UnsupportedOperationException - if one of the getter methods cannot be resolved
Since:
8.0

createDependencies

<T> T createDependencies(java.lang.Class<T> cls,
                         java.lang.String filter)
                     throws java.lang.UnsupportedOperationException
Constructs an object instance that implements the interface specified by the cls parameter. All getter methods are resolved by calls to getDependency(Class, String), all other methods throw an exception.

Parameters:
cls - the interface classe, typically a dependency injection interface
filter - some filter string, may be null
Returns:
the implementation of the interface
Throws:
java.lang.UnsupportedOperationException - if one of the getter methods cannot be resolved
Since:
8.0

getDependency

<T> T getDependency(java.lang.Class<T> cls,
                    java.lang.String filter)
Resolves a dependency

Parameters:
cls - name of the interface of the dependency
filter - some filter string, may be null
Returns:
the resolved instance or null if the dependency could not be resolved