public class ComponentContainerImpl extends Object implements ComponentContainer
| Constructor and Description |
|---|
ComponentContainerImpl(StrolchAgent agent) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
StrolchAgent |
getAgent() |
<T> T |
getComponent(Class<T> clazz) |
Set<Class<?>> |
getComponentTypes() |
PrivilegeHandler |
getPrivilegeHandler() |
StrolchRealm |
getRealm(Certificate certificate)
Returns the default
StrolchRealm for the user with the given Certificate. |
StrolchRealm |
getRealm(String realm)
Returns the
StrolchRealm with the given name. |
Set<String> |
getRealmNames() |
ComponentState |
getState() |
boolean |
hasComponent(Class<?> clazz) |
void |
initialize(StrolchConfiguration strolchConfiguration) |
void |
setup(StrolchConfiguration strolchConfiguration) |
void |
start() |
void |
stop() |
public ComponentContainerImpl(StrolchAgent agent)
public StrolchAgent getAgent()
getAgent in interface ComponentContainerpublic ComponentState getState()
getState in interface ComponentContainerpublic Set<Class<?>> getComponentTypes()
getComponentTypes in interface ComponentContainerpublic boolean hasComponent(Class<?> clazz)
hasComponent in interface ComponentContainerpublic <T> T getComponent(Class<T> clazz) throws IllegalArgumentException
getComponent in interface ComponentContainerIllegalArgumentExceptionpublic PrivilegeHandler getPrivilegeHandler() throws IllegalArgumentException
getPrivilegeHandler in interface ComponentContainerIllegalArgumentExceptionpublic Set<String> getRealmNames()
getRealmNames in interface ComponentContainerpublic StrolchRealm getRealm(String realm) throws StrolchException
ComponentContainerStrolchRealm with the given name. To get the default realm, use the constant
StrolchConstants.DEFAULT_REALM.getRealm in interface ComponentContainerrealm - the name of the StrolchRealm to returnStrolchRealm with the given nameStrolchException - if the StrolchRealm does not exist with the given namepublic StrolchRealm getRealm(Certificate certificate) throws StrolchException
ComponentContainerStrolchRealm for the user with the given Certificate. This is done by
querying the property StrolchConstants.PROP_REALM from the certificate.getRealm in interface ComponentContainercertificate - the Certificate from which to retrieve the name of the StrolchRealm to returnStrolchRealmStrolchException - if the user does not have a StrolchConstants.PROP_REALM property configured, and the default
realm is not configured, or if the realm does not exist with the found valuepublic void setup(StrolchConfiguration strolchConfiguration)
public void initialize(StrolchConfiguration strolchConfiguration)
public void start()
public void stop()
public void destroy()
Copyright © 2011–2016 Strolch. All rights reserved.