@ Unbind public void unbindFactory ( Factory factory ) { try { lock . lock ( ) ; InstanceDeclaration declaration = getDeclarationByFactory ( factory ) ; if ( declaration != null ) { LOGGER . info ( "Disposing instance created by" ) ; declaration . dispose ( ) ; declarations . remove ( declaration ) ; } } finally { lock . unlock ( ) ; } }
Unbinds a factory .