Add a com.jvnet.hk2.annotations.Service annotation at the class definition level to identify your class as a service implementation.
@Service
public class MyContainer implements Container {
...
}
To avoid potential name collisions with other containers, use the fully qualified class name of your container class in the @Service annotation's name element:
package com.example.containers;
...
@Service(name="com.example.containers.MyContainer")
public class MyContainer implements Container {
...
}