|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.security.GuardedObject
public class GuardedObject
GuardedObject´Â ´Ù¸¥ °´Ã¼¿¡ÀÇ ¾×¼¼½º·ÎºÎÅÍ º¸È£Çϱâ À§ÇÑ °´Ã¼ÀÔ´Ï´Ù.
GuardedObject´Â
Ÿ°Ù °´Ã¼¿Í Guard °´Ã¼¸¦ ĸ½¶ÈÇÕ´Ï´Ù. À̰Ϳ¡ ÀÇÇØ
Ÿ°Ù °´Ã¼¿¡ÀÇ ¾×¼¼½º´Â Guard °´Ã¼°¡ Çã°¡ÇßÀ» °æ¿ì¿¡ ÇÑÁ¤ÇØ °¡´ÉÇÏ°Ô µË´Ï´Ù. °´Ã¼°¡ GuardedObject¿¡ ÀÇÇØ ĸ½¶ÈµÇ¸é, ±× °´Ã¼¿¡ÀÇ ¾×¼¼½º´Â getObject ¸Þ¼µå¿¡ ÀÇÇØ Á¦¾îµË´Ï´Ù. getObject´Â
¾×¼¼½º¸¦ Á¦¾îÇϰí ÀÖ´Â Guard °´Ã¼ÀÇ checkGuard ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. ¾×¼¼½º°¡ Çã°¡µÇÁö ¾Ê¾Ò´ø °æ¿ì´Â ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
Guard,
Permission,
Á÷·ÄÈ µÈ Çü½Ä | »ý¼ºÀÚ °³¿ä | |
|---|---|
GuardedObject (Object object,
Guard guard)
ÁöÁ¤µÈ °´Ã¼¿Í °¡À̵å·Î GuardedObject¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
| ¸Þ¼µå °³¿ä | |
|---|---|
Object |
getObject ()
°¡À̵尡 ÀÖ´Â °´Ã¼¸¦ ²¨³À´Ï´Ù. |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| »ý¼ºÀÚ »ó¼¼ |
|---|
public GuardedObject(Object object,
Guard guard)
object - °¡À̵åÀÇ ´ë»óÀÌ µÇ´Â °´Ã¼guard - °´Ã¼¿¡ÀÇ ¾×¼¼½º¸¦ Á¦¾îÇÏ´Â Guard °´Ã¼| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public Object getObject()
throws SecurityException
SecurityException - °¡À̵尡 ÀÖ´Â °´Ã¼¿¡ÀÇ ¾×¼¼½º°¡ °ÅºÎµÇ¾úÀ» °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.