T
- public abstract class ExtensionManager<T extends ExtensionHandler> extends Object implements InvocationHandler
ExtensionResultStatusType
to determine whether or not to continue with other handlers.Modifier and Type | Field and Description |
---|---|
protected T |
extensionHandler |
protected List<T> |
handlers |
protected boolean |
handlersSorted |
protected static String |
LOCK_OBJECT |
Constructor and Description |
---|
ExtensionManager(Class<T> _clazz)
Should take in a className that matches the ExtensionHandler interface being managed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
continueOnHandled()
Returns whether or not this extension manager continues on
ExtensionResultStatusType .HANDLED. |
List<T> |
getHandlers() |
int |
getPriority()
ExtensionManager s don't really need a priority but they pick up this property due to the
fact that we want them to implement the same interface |
T |
getProxy() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
setHandlers(List<T> handlers) |
boolean |
shouldContinue(ExtensionResultStatusType result,
ExtensionHandler handler,
Method method,
Object[] args)
Utility method that is useful for determining whether or not an ExtensionManager implementation
should continue after processing a ExtensionHandler call.
|
protected boolean handlersSorted
protected static String LOCK_OBJECT
protected T extends ExtensionHandler extensionHandler
protected List<T extends ExtensionHandler> handlers
public T getProxy()
public boolean shouldContinue(ExtensionResultStatusType result, ExtensionHandler handler, Method method, Object[] args)
public boolean continueOnHandled()
ExtensionResultStatusType
.HANDLED.public int getPriority()
ExtensionManager
s don't really need a priority but they pick up this property due to the
fact that we want them to implement the same interface Copyright © 2014. All rights reserved.