|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.rest.ResourceBinder
public class ResourceBinder
Created by The eXo Platform SAS.
For binding and unbinding
ResourceContainers.
| Constructor Summary | |
|---|---|
ResourceBinder(org.exoplatform.container.xml.InitParams params,
org.exoplatform.container.ExoContainerContext containerContext)
Constructor sets the resolving strategy. |
|
| Method Summary | |
|---|---|
void |
bind(ResourceContainer resourceCont)
Bind ResourceContainer resourceCont if validation for this container is ok. |
void |
clear()
Clear the list of ResourceContainer description. |
List<ResourceDescriptor> |
getAllDescriptors()
|
void |
start()
|
void |
stop()
|
void |
unbind(ResourceContainer resourceCont)
Unbind single ResourceContainer. |
void |
unbind(String className)
Unbind ResourceContainer with given class name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceBinder(org.exoplatform.container.xml.InitParams params,
org.exoplatform.container.ExoContainerContext containerContext)
throws Exception
params - class name for ResourceContainerResolvingStrategycontainerContext - ExoContainer context
Exception - any exception| Method Detail |
|---|
public final void bind(ResourceContainer resourceCont)
throws InvalidResourceDescriptorException
- Parameters:
resourceCont - the Resource Container
- Throws:
InvalidResourceDescriptorException - if validation failed.
public final void unbind(ResourceContainer resourceCont)
resourceCont - the ResourceContainer which should be unbinded.public final void unbind(String className)
className - the class name.public final void clear()
public final List<ResourceDescriptor> getAllDescriptors()
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||