1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/util/Pool.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/util/Pool.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -114,6 +114,7 @@ 1.11 this.context = context; 1.12 } 1.13 1.14 + @Override 1.15 protected javax.xml.bind.Marshaller create() { 1.16 try { 1.17 return context.createMarshaller(); 1.18 @@ -134,6 +135,7 @@ 1.19 this.context = context; 1.20 } 1.21 1.22 + @Override 1.23 protected javax.xml.bind.Unmarshaller create() { 1.24 try { 1.25 return context.createUnmarshaller(); 1.26 @@ -155,8 +157,21 @@ 1.27 recycle(master); // we'll use master as a part of the pool, too. 1.28 } 1.29 1.30 + @Override 1.31 protected Tube create() { 1.32 return TubeCloner.clone(master); 1.33 } 1.34 + 1.35 + /** 1.36 + * 1.37 + * @return master tubeline from pool 1.38 + * @deprecated Expected to be used in rare cases where access to master 1.39 + * tubeline is required and safe, such as Stub.close()." 1.40 + */ 1.41 + @Deprecated() 1.42 + public final Tube takeMaster() { 1.43 + return master; 1.44 + } 1.45 + 1.46 } 1.47 }