public class ContainerInitializerModel extends ElementModel<javax.servlet.ServletContainerInitializer,ContainerInitializerEventData>
ServletContainerInitializer. It'll never (at least for now) be registered through Whiteboard,
so we don't have to pay attention to OSGi service references. And we will never (for now) be able to register
single SCI into multiple OsgiServletContext instances. Only one -
the one associated with a bundle to which an instance of WebContainer is scoped.contextModels, contextModelsInfo, dtoFailureCode, isValid| Constructor and Description |
|---|
ContainerInitializerModel(javax.servlet.ServletContainerInitializer containerInitializer,
Class<?>[] classes) |
| Modifier and Type | Method and Description |
|---|---|
ContainerInitializerEventData |
asEventData()
When sending events related to
ElementModel we can't use the same instance which is kept in
ServerModel, we have to copy relevant
information to lightweight object. |
Set<Class<?>> |
getClasses() |
javax.servlet.ServletContainerInitializer |
getContainerInitializer() |
protected String |
getIdPrefix() |
List<ServletModel> |
getRelatedServletModels() |
List<WebSocketModel> |
getRelatedWebSocketModels() |
boolean |
isForAnyRuntime() |
boolean |
isForJetty() |
boolean |
isForTomcat() |
boolean |
isForUndertow() |
Boolean |
performValidation()
Perform element-specific validation and throws different exceptions for all element-specific validation
problems.
|
void |
register(WhiteboardWebContainerView view)
Each
ElementModel can register itself as Whiteboard element. |
void |
setForAnyRuntime(boolean forAnyRuntime) |
void |
setForJetty(boolean forJetty) |
void |
setForTomcat(boolean forTomcat) |
void |
setForUndertow(boolean forUndertow) |
String |
toString() |
void |
unregister(WhiteboardWebContainerView view)
Each
ElementModel can unregister itself as Whiteboard element. |
addContextModel, changeContextModels, compareTo, equals, getContextFilter, getContextModels, getContextModelsInfo, getContextSelector, getDtoFailureCode, getElementReference, getElementSupplier, getRegisteringBundle, getServiceId, getServiceRank, getTimestamp, hasContextModels, hashCode, isAsynchronusRegistration, isPrototype, isValid, resetContextModels, setAsynchronusRegistration, setCommonEventProperties, setContextSelectFilter, setContextSelector, setDtoFailureCode, setElementReference, setElementSupplier, setRegisteringBundle, setServiceId, setServiceRank, setTimestampgetId, getNumericIdpublic ContainerInitializerModel(javax.servlet.ServletContainerInitializer containerInitializer,
Class<?>[] classes)
protected String getIdPrefix()
getIdPrefix in class Identitypublic void register(WhiteboardWebContainerView view)
ElementModelElementModel can register itself as Whiteboard element.register in class ElementModel<javax.servlet.ServletContainerInitializer,ContainerInitializerEventData>public void unregister(WhiteboardWebContainerView view)
ElementModelElementModel can unregister itself as Whiteboard element.unregister in class ElementModel<javax.servlet.ServletContainerInitializer,ContainerInitializerEventData>public ContainerInitializerEventData asEventData()
ElementModelElementModel we can't use the same instance which is kept in
ServerModel, we have to copy relevant
information to lightweight object.asEventData in class ElementModel<javax.servlet.ServletContainerInitializer,ContainerInitializerEventData>public javax.servlet.ServletContainerInitializer getContainerInitializer()
public Boolean performValidation()
ElementModelPerform element-specific validation and throws different exceptions for all element-specific validation problems. This method should not be called for Whiteboard purposes, where "failure DTO" has to be configured.
This method should be called in Http Service scenario where we immediately need strong feedback - with exceptions thrown for all validation problems. In Whiteboard scenario, the exception is caught, logged and it's the tracker that prevents further registration.
This method may alter the state of the model when (which is possible during validation) some extra information is obtained/compiled/processed.
performValidation in class ElementModel<javax.servlet.ServletContainerInitializer,ContainerInitializerEventData>public List<WebSocketModel> getRelatedWebSocketModels()
public List<ServletModel> getRelatedServletModels()
public boolean isForJetty()
public void setForJetty(boolean forJetty)
public boolean isForTomcat()
public void setForTomcat(boolean forTomcat)
public boolean isForUndertow()
public void setForUndertow(boolean forUndertow)
public boolean isForAnyRuntime()
public void setForAnyRuntime(boolean forAnyRuntime)
public String toString()
toString in class ElementModel<javax.servlet.ServletContainerInitializer,ContainerInitializerEventData>Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.