FileDocCategorySizeDatePackage
ServerEntryHelper.javaAPI DocGlassfish v2 API3612Fri May 04 22:35:48 BST 2007com.sun.enterprise.server.ondemand.entry

ServerEntryHelper

public class ServerEntryHelper extends Object
Helper class that can be used by entrypoints to generate entry events.
author
Binod PG

Fields Summary
Constructors Summary
Methods Summary
public static voidgenerateAppLoaderEntryContext(com.sun.enterprise.deployment.Descriptor desc)

        sendEvent (new EntryContext(desc, EntryPoint.APPLOADER));
    
public static voidgenerateJndiEntryContext(java.lang.String jndiName)

        sendEvent (new EntryContext(jndiName, EntryPoint.JNDI));
    
public static voidgenerateMbeanEntryContext(javax.management.ObjectName name)

        sendEvent (new EntryContext(name, EntryPoint.MBEAN));
    
public static voidgeneratePortEntryContext(java.lang.Integer port)

        sendEvent (new EntryContext(port, EntryPoint.PORT));
    
public static voidgenerateStartUpEntryContext(java.lang.Boolean obj)

        sendEvent (new EntryContext(obj, EntryPoint.STARTUP));
    
public static booleanisNotified(EntryContext context)

        ServerEntryListener listener = OnDemandServer.getServerEntryListener();
        return listener.isNotified(context);
    
public static booleanisNotifiedByPortEntryContext(java.lang.Integer port)

        return isNotified(new EntryContext(port, EntryPoint.PORT));
    
public static voidsendEvent(EntryContext context)

        ServerEntryListener listener = OnDemandServer.getServerEntryListener();
        if (listener != null) {
            listener.notifyEntry(context);
        }