|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.v3.server.StartupRunLevelBridge
@Priority(value=2) @Service public class StartupRunLevelBridge
Provides a bridge from Startup to the RunLevelService based approach.
Also implements FutureProvider to provide a list of futures for
startup service inhabitant activation.
| Constructor Summary | |
|---|---|
StartupRunLevelBridge()
|
|
StartupRunLevelBridge(Class additionalShutdownClass)
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.jvnet.hk2.component.Inhabitant<?> i)
Activate the given inhabitant. |
protected void |
deactivate(org.jvnet.hk2.component.Inhabitant<?> i)
Deactivate the given inhabitant. |
List<Future<Result<Thread>>> |
getFutures()
|
void |
postConstruct()
|
void |
preDestroy()
|
protected boolean |
qualifies(boolean startup,
org.jvnet.hk2.component.Inhabitant<?> i)
Determine if the given Inhabitant is using the new RunLevel-based mechanism. |
protected List<org.jvnet.hk2.component.Inhabitant<?>> |
sort(Collection<org.jvnet.hk2.component.Inhabitant<?>> coll)
Get a sorted List from the the given Collection, reusing the same
Collection if provided as a List type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StartupRunLevelBridge()
public StartupRunLevelBridge(Class additionalShutdownClass)
| Method Detail |
|---|
protected void activate(org.jvnet.hk2.component.Inhabitant<?> i)
i - the inhabitantpublic List<Future<Result<Thread>>> getFutures()
getFutures in interface FutureProvider<Result<Thread>>public void postConstruct()
postConstruct in interface org.glassfish.hk2.PostConstructpublic void preDestroy()
preDestroy in interface org.glassfish.hk2.PreDestroyprotected void deactivate(org.jvnet.hk2.component.Inhabitant<?> i)
i - the inhabitant
protected boolean qualifies(boolean startup,
org.jvnet.hk2.component.Inhabitant<?> i)
Inhabitant is using the new RunLevel-based mechanism.
protected List<org.jvnet.hk2.component.Inhabitant<?>> sort(Collection<org.jvnet.hk2.component.Inhabitant<?>> coll)
List from the the given Collection, reusing the same
Collection if provided as a List type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||