- /**
- * @return The provided interface.
- */
- public ProvidedInterface getProvided() {
- return _provided;
- }
-
- /**
- * @param <T> Expected type of the implementation.
- * @param aType Type of the implementation.
- * @return Implementation.
- */
- public <T> T getImplementation(Class<T> aType) {
- return (T)_implementation;
- }
+ /**
+ * Constructs the object.
+ *
+ * @param aProvided
+ * Provided interface.
+ * @param aImplementation
+ * Implementation.
+ */
+ public ProvidedInterfaceImplementation(ProvidedInterface aProvided,
+ Object aImplementation) {
+ provided = aProvided;
+ implementation = aImplementation;
+ }
+
+ /**
+ *
+ * @return The provided interface.
+ */
+ public ProvidedInterface getProvided() {
+ return provided;
+ }
+
+ /**
+ *
+ * @param <T>
+ * Expected type of the implementation.
+ * @param aType
+ * Type of the implementation.
+ *
+ * @return Implementation.
+ */
+ public <T> T getImplementation(Class<T> aType) {
+ return (T) implementation;
+ }