This scenario only occurs when the class calling the interruptible method is part of a Thread, not a Runnable or general-purpose library code, as illustrated in Listing 5.
只有当调用可中断方法的类是Thread的一部分,而不是Runnable或通用库代码的情况下,才会发生这样的场景,清单 5演示了这种情况。
Given a Session provided by the calling code in the JmsTemplate, this class provides a callback interface to create a JMS message.
JmsTemplate中的调用代码提供了session类,这个类提供了一个创建JMS消息的回调接口。
The function definitions inside a class normally have a peculiar form of argument list, dictated by the calling conventions for methods — again, this is explained later.
类中的函数定义通常包括了一个特殊形式的参数列表,用于方法调用约定——同样我们在后面讨论这些。
Access Manager provides a login module, com.tivoli.mts.PDLoginModule, to support JAAS authentication. This login model class requires that the calling application provides.
AccessManager提供了登录模块com. tivoli . mts . PDLoginModule,用于支持JAAS身份验证。
This isn't a complicated process, but it invokes taking the role data from the AppRoleManager class and then calling the methods defined by the AppUserMangager class that associate users with roles.
这不是一个复杂的过程,但它要从AppRoleManager类获取角色数据,然后调用将用户与角色关联在一起的AppUserMangager类所定义的方法。
This isn't a complicated process, but it invokes taking the role data from the AppRoleManager class and then calling the methods defined by the AppUserMangager class that associate users with roles.
这不是一个复杂的过程,但它要从AppRoleManager类获取角色数据,然后调用将用户与角色关联在一起的AppUserMangager类所定义的方法。
应用推荐