Searched refs:instance (Results 1 - 25 of 375) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/java/lang/instrument/
H A DAppendToBootstrapClassPathTest.java62 Object instance = loadExampleClass();
63 assertTrue(instance.getClass().getClassLoader() == null);
67 ExampleForBootClassPath instance = new ExampleForBootClassPath();
68 assertTrue(instance.fifteen() == 15);
69 return instance;
H A DManifestTestApp.java35 Object instance = loadExampleClass();
36 if (instance.getClass().getClassLoader() == null) {
55 ExampleForBootClassPath instance = new ExampleForBootClassPath();
57 if (instance.fifteen() == 15) {
63 System.out.println("FAIL: instance.fifteen()=" +
64 instance.fifteen());
67 return instance;
/openjdk7/jdk/src/share/classes/sun/java2d/
H A DSurfaceManagerFactory.java43 * The single shared instance.
45 private static SurfaceManagerFactory instance; field in class:SurfaceManagerFactory
48 * Returns the surface manager factory instance. This returns a factory
55 if (instance == null) {
58 return instance;
75 if (instance != null) {
76 // We don't want to re-set the instance at any time.
80 instance = factory;
84 * Creates a new instance of a VolatileSurfaceManager given any
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DModelIdentifier.java89 private int instance = 0; field in class:ModelIdentifier
95 public ModelIdentifier(String object, int instance) { argument
97 this.instance = instance;
106 public ModelIdentifier(String object, String variable, int instance) { argument
109 this.instance = instance;
114 return instance;
117 public void setInstance(int instance) { argument
118 this.instance
[all...]
H A DSoftControl.java35 public double[] get(int instance, String name); argument
H A DSoftProcess.java36 public double[] get(int instance, String name); argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/
H A DCommonResourceBundle.java38 private static CommonResourceBundle instance = null; field in class:CommonResourceBundle
53 if (instance == null) {
55 instance = new CommonResourceBundle();
64 return instance;
68 if (instance == null) {
70 instance = new CommonResourceBundle(locale);
75 instance = new CommonResourceBundle(locale);
79 return instance;
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/
H A DLocalEventTimer.java42 private static LocalEventTimer instance; // singleton instance field in class:LocalEventTimer
45 * Creates the singleton LocalEventTimer instance.
52 * Get the singleton LocalEventTimer instance
54 * @return LocalEventTimer - the singleton LocalEventTimer instance
57 if (instance == null) {
58 instance = new LocalEventTimer();
60 return instance;
/openjdk7/jdk/src/share/classes/java/lang/
H A DCharacterData.java78 return CharacterDataLatin1.instance;
82 return CharacterData00.instance;
84 return CharacterData01.instance;
86 return CharacterData02.instance;
88 return CharacterData0E.instance;
91 return CharacterDataPrivateUse.instance;
93 return CharacterDataUndefined.instance;
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/UTIL/
H A DTestUtil.java30 private static TestUtil instance = null; field in class:TestUtil
33 instance = new TestUtil();
48 if (instance == null) {
60 return instance.isUnlimited;
66 if (instance == null) {
67 instance = new TestUtil();
69 if ((instance.isUnlimited) ||
/openjdk7/langtools/src/share/classes/com/sun/tools/apt/mirror/
H A DAptEnv.java58 public static AptEnv instance(Context context) { method in class:AptEnv
59 AptEnv instance = context.get(aptEnvKey);
60 if (instance == null) {
61 instance = new AptEnv(context);
63 return instance;
69 names = Names.instance(context);
70 symtab = Symtab.instance(context);
71 jctypes = Types.instance(context);
72 enter = Enter.instance(context);
73 attr = Attr.instance(contex
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/parser/
H A DParserFactory.java48 public static ParserFactory instance(Context context) { method in class:ParserFactory
49 ParserFactory instance = context.get(parserFactoryKey);
50 if (instance == null) {
51 instance = new ParserFactory(context);
53 return instance;
67 this.F = TreeMaker.instance(context);
68 this.log = Log.instance(context);
69 this.names = Names.instance(context);
70 this.keywords = Keywords.instance(context);
71 this.source = Source.instance(contex
[all...]
H A DScannerFactory.java49 /** Get the Factory instance for this context. */
50 public static ScannerFactory instance(Context context) { method in class:ScannerFactory
51 ScannerFactory instance = context.get(scannerFactoryKey);
52 if (instance == null)
53 instance = new ScannerFactory(context);
54 return instance;
65 this.log = Log.instance(context);
66 this.names = Names.instance(context);
67 this.source = Source.instance(context);
68 this.keywords = Keywords.instance(contex
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DGraphicsCallback.java35 private static PaintCallback instance = new PaintCallback(); field in class:GraphicsCallback.PaintCallback
42 return instance;
46 private static PrintCallback instance = new PrintCallback(); field in class:GraphicsCallback.PrintCallback
53 return instance;
57 private static PaintAllCallback instance = new PaintAllCallback(); field in class:GraphicsCallback.PaintAllCallback
64 return instance;
68 private static PrintAllCallback instance = new PrintAllCallback(); field in class:GraphicsCallback.PrintAllCallback
75 return instance;
79 private static PeerPaintCallback instance = new PeerPaintCallback(); field in class:GraphicsCallback.PeerPaintCallback
91 return instance;
95 private static PeerPrintCallback instance = new PeerPrintCallback(); field in class:GraphicsCallback.PeerPrintCallback
113 private static PaintHeavyweightComponentsCallback instance = field in class:GraphicsCallback.PaintHeavyweightComponentsCallback
131 private static PrintHeavyweightComponentsCallback instance = field in class:GraphicsCallback.PrintHeavyweightComponentsCallback
[all...]
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/wbmp/
H A DWBMPMetadataFormat.java35 private static IIOMetadataFormat instance = null; field in class:WBMPMetadataFormat
65 if (instance == null) {
66 instance = new WBMPMetadataFormat();
68 return instance;
/openjdk7/jdk/src/share/classes/sun/awt/
H A DDesktopBrowse.java33 public static void setInstance(DesktopBrowse instance) { argument
35 throw new IllegalStateException("DesktopBrowse instance has already been set.");
37 mInstance = instance;
/openjdk7/langtools/test/tools/javac/unicode/
H A DSupplementaryJavaID6.java30 \ud801\udc00 instance = new \ud801\udc00();
31 instance.\ud801\udc01();
/openjdk7/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/
H A DScanDirConfigTest.java87 final ScanDirConfig instance = new ScanDirConfig(file.getAbsolutePath());
95 instance.load();
97 assertEquals(bean,instance.getConfiguration());
101 assertNotSame(bean,instance.getConfiguration());
103 instance.load();
105 assertEquals(bean,instance.getConfiguration());
120 final ScanDirConfigMXBean instance =
130 instance.setConfiguration(bean);
131 instance.save();
134 assertEquals(instance
[all...]
/openjdk7/jdk/src/share/classes/java/beans/
H A DNameGenerator.java36 * and an instance number.
38 * For example, if the first object instance javax.swing.JButton
85 * Returns a unique string which identifies the object instance.
89 * @param instance object used to generate string
92 public String instanceName(Object instance) { argument
93 if (instance == null) {
96 if (instance instanceof Class) {
97 return unqualifiedClassName((Class)instance);
100 String result = (String)valueToName.get(instance);
104 Class type = instance
[all...]
/openjdk7/jdk/src/share/classes/javax/net/ssl/
H A DKeyManagerFactory.java139 GetInstance.Instance instance = GetInstance.getInstance
142 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl,
143 instance.provider, algorithm);
183 GetInstance.Instance instance = GetInstance.getInstance
186 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl,
187 instance.provider, algorithm);
205 * @param provider an instance of the provider.
220 GetInstance.Instance instance = GetInstance.getInstance
223 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl,
224 instance
[all...]
H A DTrustManagerFactory.java138 GetInstance.Instance instance = GetInstance.getInstance
141 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl,
142 instance.provider, algorithm);
182 GetInstance.Instance instance = GetInstance.getInstance
185 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl,
186 instance.provider, algorithm);
204 * @param provider an instance of the provider.
219 GetInstance.Instance instance = GetInstance.getInstance
222 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl,
223 instance
[all...]
/openjdk7/jdk/src/share/classes/java/security/cert/
H A DCertPathBuilder.java77 * access a single <code>CertPathBuilder</code> instance concurrently should
79 * threads each manipulating a different <code>CertPathBuilder</code> instance
150 Instance instance = GetInstance.getInstance("CertPathBuilder",
152 return new CertPathBuilder((CertPathBuilderSpi)instance.impl,
153 instance.provider, algorithm);
193 Instance instance = GetInstance.getInstance("CertPathBuilder",
195 return new CertPathBuilder((CertPathBuilderSpi)instance.impl,
196 instance.provider, algorithm);
230 Instance instance = GetInstance.getInstance("CertPathBuilder",
232 return new CertPathBuilder((CertPathBuilderSpi)instance
[all...]
H A DCertPathValidator.java78 * access a single <code>CertPathValidator</code> instance concurrently should
81 * instance need not synchronize.
150 Instance instance = GetInstance.getInstance("CertPathValidator",
152 return new CertPathValidator((CertPathValidatorSpi)instance.impl,
153 instance.provider, algorithm);
194 Instance instance = GetInstance.getInstance("CertPathValidator",
196 return new CertPathValidator((CertPathValidatorSpi)instance.impl,
197 instance.provider, algorithm);
231 Instance instance = GetInstance.getInstance("CertPathValidator",
233 return new CertPathValidator((CertPathValidatorSpi)instance
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/server/
H A DDefaultResourceInjector.java41 public void inject(@NotNull WSWebServiceContext context, @NotNull Object instance) { argument
43 instance.getClass(),WebServiceContext.class,false).inject(instance,context);
/openjdk7/jdk/src/share/classes/com/sun/jdi/request/
H A DBreakpointRequest.java70 * which the currently executing instance is the object
77 * @param instance the object which must be the current instance
86 void addInstanceFilter(ObjectReference instance); argument

Completed in 99 milliseconds

1234567891011>>