com.sun.enterprise.config.serverbeans
Class AdminService.Duck

java.lang.Object
  extended by com.sun.enterprise.config.serverbeans.AdminService.Duck
Enclosing interface:
AdminService

public static class AdminService.Duck
extends java.lang.Object


Constructor Summary
AdminService.Duck()
           
 
Method Summary
static AuthRealm getAssociatedAuthRealm(AdminService as)
          This is the place where the iteration for the AuthRealm for administration should be carried out in server.
static JmxConnector getSystemJmxConnector(AdminService as)
           
static boolean usesFileRealm(AdminService as)
          Returns true if the classname of associated authrealm is same as fully qualified FileRealm classname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminService.Duck

public AdminService.Duck()
Method Detail

getSystemJmxConnector

public static JmxConnector getSystemJmxConnector(AdminService as)

getAssociatedAuthRealm

public static AuthRealm getAssociatedAuthRealm(AdminService as)
This is the place where the iteration for the AuthRealm for administration should be carried out in server. A convenience method for the same.

Parameters:
as - AdminService implemented by those who implement the interface (outer interface).
Returns:
AuthRealm instance for which the name is same as as.getAuthRealmName(), null otherwise.

usesFileRealm

public static boolean usesFileRealm(AdminService as)
Returns true if the classname of associated authrealm is same as fully qualified FileRealm classname.

Parameters:
as - "This" Admin Service
Returns:
true if associated authrealm is nonnull and its classname equals "com.sun.enterprise.security.auth.realm.file.FileRealm", false otherwise


Copyright © 2012 GlassFish Community. All Rights Reserved.