org.glassfish.hk2
Interface DynamicBinderFactory

All Superinterfaces:
BinderFactory

Deprecated.

@Deprecated
public interface DynamicBinderFactory
extends BinderFactory

Sub interfaces of the BinderFactory to allow dynamic registration of services.

Author:
Jerome Dochez, Jeff Trent

Method Summary
 Bindings commit()
          Deprecated. Commits all the binders to the Services registry.
 
Methods inherited from interface org.glassfish.hk2.BinderFactory
bind, bind, bind, bind, bind, inParent
 

Method Detail

commit

Bindings commit()
Deprecated. 
Commits all the binders to the Services registry.

The return object can be used to release all of the bindings as a group.

WARNING: Hk2 does not guard against the possibility that someone has cached (or injected) a Provider from the committed Bindings group. Upon {#release() these services become orphaned as they are no longer registered in Services.



Copyright © 2013 Oracle Corporation. All Rights Reserved.