Interpreter set

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Interpreter set

webdel@libero.it
Hi,
i use method set of Interpreter class for pass java
class instance to bean shell. How i limit to use only
public method of java instance class?
Now i can invoke olso private and protect method.

thank



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
<a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=click">http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users
Reply | Threaded
Open this post in threaded view
|

RE: Interpreter set

Daniel Leuck
Hello Webdel,

You apparently have accessibility set to true (its off by default.)  Use the
command setAccessibility(false);

Daniel Leuck
http://www.ikayzo.com 
http://www.ikayzo.org 
http://www.javaui.net 

> -----Original Message-----
> From: [hidden email] [mailto:beanshell-users-
> [hidden email]] On Behalf Of [hidden email]
> Sent: Saturday, December 31, 2005 4:58 AM
> To: beanshell-users
> Subject: [Beanshell-users] Interpreter set
>
> Hi,
> i use method set of Interpreter class for pass java
> class instance to bean shell. How i limit to use only
> public method of java instance class?
> Now i can invoke olso private and protect method.
>
> thank
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> <a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick">http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
> _______________________________________________
> Beanshell-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beanshell-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
<a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=click">http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users
Reply | Threaded
Open this post in threaded view
|

Re: Interpreter set

webdel@libero.it
i'dont found method setAccessibility in class Interpreter. How i use
command setAccessibility?

thank


Daniel Leuck ha scritto:

>Hello Webdel,
>
>You apparently have accessibility set to true (its off by default.)  Use the
>command setAccessibility(false);
>
>Daniel Leuck
>http://www.ikayzo.com 
>http://www.ikayzo.org 
>http://www.javaui.net 
>
>  
>
>>-----Original Message-----
>>From: [hidden email] [mailto:beanshell-users-
>>[hidden email]] On Behalf Of [hidden email]
>>Sent: Saturday, December 31, 2005 4:58 AM
>>To: beanshell-users
>>Subject: [Beanshell-users] Interpreter set
>>
>>Hi,
>>i use method set of Interpreter class for pass java
>>class instance to bean shell. How i limit to use only
>>public method of java instance class?
>>Now i can invoke olso private and protect method.
>>
>>thank
>>
>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>>files
>>for problems?  Stop!  Download the new AJAX search engine that makes
>>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>><a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick">http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
>>_______________________________________________
>>Beanshell-users mailing list
>>[hidden email]
>>https://lists.sourceforge.net/lists/listinfo/beanshell-users
>>    
>>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
><a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=click">http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
>_______________________________________________
>Beanshell-users mailing list
>[hidden email]
>https://lists.sourceforge.net/lists/listinfo/beanshell-users
>
>
>  
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users
Reply | Threaded
Open this post in threaded view
|

RE: Interpreter set

Daniel Leuck
Hello Webdel,

It's a BeanShell command (like "print"), not an Interpreter method.  Within
a script simply put "setAccessibility(false)".

Within Java, you can control accessibility separately for each field, method
and constructor.  See java.lang.reflect.AccessibleObject.

Daniel Leuck
http://www.ikayzo.com 
http://www.ikayzo.org 
http://www.javaui.net 

> -----Original Message-----
> From: [hidden email] [mailto:beanshell-users-
> [hidden email]] On Behalf Of webdel
> Sent: Sunday, January 01, 2006 11:00 PM
> To: Daniel Leuck
> Cc: 'beanshell-users'
> Subject: Re: [Beanshell-users] Interpreter set
>
> i'dont found method setAccessibility in class Interpreter. How i use
> command setAccessibility?
>
> thank
>
>
> Daniel Leuck ha scritto:
>
> >Hello Webdel,
> >
> >You apparently have accessibility set to true (its off by default.)  Use
> the
> >command setAccessibility(false);
> >
> >Daniel Leuck
> >http://www.ikayzo.com
> >http://www.ikayzo.org
> >http://www.javaui.net
> >
> >
> >
> >>-----Original Message-----
> >>From: [hidden email] [mailto:beanshell-
> users-
> >>[hidden email]] On Behalf Of [hidden email]
> >>Sent: Saturday, December 31, 2005 4:58 AM
> >>To: beanshell-users
> >>Subject: [Beanshell-users] Interpreter set
> >>
> >>Hi,
> >>i use method set of Interpreter class for pass java
> >>class instance to bean shell. How i limit to use only
> >>public method of java instance class?
> >>Now i can invoke olso private and protect method.
> >>
> >>thank
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> >>files
> >>for problems?  Stop!  Download the new AJAX search engine that makes
> >>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> >><a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick">http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
> >>_______________________________________________
> >>Beanshell-users mailing list
> >>[hidden email]
> >>https://lists.sourceforge.net/lists/listinfo/beanshell-users
> >>
> >>
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> >for problems?  Stop!  Download the new AJAX search engine that makes
> >searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> ><a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=click">http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> >_______________________________________________
> >Beanshell-users mailing list
> >[hidden email]
> >https://lists.sourceforge.net/lists/listinfo/beanshell-users
> >
> >
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Beanshell-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beanshell-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
<a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=click">http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users
Reply | Threaded
Open this post in threaded view
|

Re: Interpreter set

Daniel Wunsch
In reply to this post by webdel@libero.it
> i'dont found method setAccessibility in class Interpreter. How i use
> command setAccessibility?

it's not a method, just a function:
  setAccessibility(true);

have a look into the bsh/commands
directory within the beanshell jar.

daniel


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users