src/share/classes/com/sun/tools/javadoc/JavadocMemberEnter.java

changeset 893
8f0dcb9499db
parent 554
9d9f26857129
child 1051
b0909f992710
equal deleted inserted replaced
892:3e30c95da3c6 893:8f0dcb9499db
1 /* 1 /*
2 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
44 if (instance == null) 44 if (instance == null)
45 instance = new JavadocMemberEnter(context); 45 instance = new JavadocMemberEnter(context);
46 return (JavadocMemberEnter)instance; 46 return (JavadocMemberEnter)instance;
47 } 47 }
48 48
49 public static void preRegister(final Context context) { 49 public static void preRegister(Context context) {
50 context.put(memberEnterKey, new Context.Factory<MemberEnter>() { 50 context.put(memberEnterKey, new Context.Factory<MemberEnter>() {
51 public MemberEnter make() { 51 public MemberEnter make(Context c) {
52 return new JavadocMemberEnter(context); 52 return new JavadocMemberEnter(c);
53 } 53 }
54 }); 54 });
55 } 55 }
56 56
57 final DocEnv docenv; 57 final DocEnv docenv;

mercurial