Use register factory mode.

Signed-off-by: yushijinhun <yushijinhun@gmail.com>
Use constants to replace magic number.

Signed-off-by: yushijinhun <yushijinhun@gmail.com>
Add getRegisteredTags() method.

Signed-off-by: yushijinhun <yushijinhun@gmail.com>
Merge branch 'register_factory' into develop