|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.wicket.util.RootContentAggregator
public class RootContentAggregator
| Field Summary | |
|---|---|
protected Logger |
LOGGER
|
| Constructor Summary | |
|---|---|
RootContentAggregator(org.osgi.framework.BundleContext bundleContext,
java.lang.String applicationName,
java.lang.String aggregationPointName)
|
|
| Method Summary | ||
|---|---|---|
void |
addContent(java.lang.String wicketId,
ContentSource source)
Add the specified source to this RootContentAggregator and mapped it as wicketId. |
|
org.apache.wicket.Component |
createWiredComponent(java.lang.String sourceId,
java.lang.String wicketId)
|
|
void |
dispose()
Dispose this RootContentAggregator instance. |
|
protected void |
finalize()
|
|
java.lang.String |
getAggregationPointName()
Returns the aggregation point id of this AbstractContentAggregator instance. |
|
java.lang.String |
getApplicationName()
Returns the application name of this ContentAggregator instance belongs to. |
|
protected PaxWicketAuthentication |
getAuthentication()
Returns the Authentication of the current request. |
|
protected org.osgi.framework.BundleContext |
getBundleContext()
Returns the BundleContext that this ContentAggregator belongs to. |
|
ContentSource<? extends org.apache.wicket.Component> |
getContentById(java.lang.String wicketId,
java.lang.String sourceId)
|
|
|
getContents(java.lang.String wicketId)
Returns list of ContentSource instnaces of the specified wicketId. |
|
protected java.lang.Object |
getObjectProperty(java.lang.String key)
|
|
protected java.lang.String[] |
getServiceNames()
|
|
protected java.lang.String[] |
getStringArrayProperty(java.lang.String key)
|
|
protected java.lang.String |
getStringProperty(java.lang.String key,
java.lang.String defaultValue)
|
|
java.util.List<java.lang.String> |
getWiredSourceIds(java.lang.String wicketId,
java.util.Comparator<ContentSource> comparator)
|
|
protected void |
onDispose()
Override this method to handle additional dispose. |
|
protected void |
onUpdated(java.util.Dictionary config)
|
|
org.osgi.framework.ServiceRegistration |
register()
|
|
boolean |
removeContent(java.lang.String wicketId,
ContentSource content)
Remove the specified content to this RootContentAggregator and unmapped it as wicketId. |
|
void |
setAggregationPointName(java.lang.String aggregationPoint)
Set the aggregation id of this AbstractContentAggregator. |
|
void |
setApplicationName(java.lang.String applicationName)
Sets the application name of this AbstractContentAggregator instant belongs to. |
|
protected void |
setProperty(java.lang.String key,
java.lang.Object value)
|
|
void |
updated(java.util.Dictionary config)
|
|
protected void |
updateRegistration()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Logger LOGGER
| Constructor Detail |
|---|
public RootContentAggregator(org.osgi.framework.BundleContext bundleContext,
java.lang.String applicationName,
java.lang.String aggregationPointName)
bundleContext - The client bundle context.applicationName - The name of the application this RootContentAggregator belongs to.aggregationPointName - The name of the AggregationPoint handled by this ContentAggregator.| Method Detail |
|---|
protected java.lang.String[] getServiceNames()
public final java.lang.String getAggregationPointName()
AbstractContentAggregator instance. This method must not return
null object.
getAggregationPointName in interface ContentAggregatorpublic final void setAggregationPointName(java.lang.String aggregationPoint)
AbstractContentAggregator.
Note: aggregation id property must not be set after this AbstractContentAggregator instance is registered
to OSGi framework.
aggregationPoint - The aggregation point name. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if the specified aggregationId argument is null or empty.public final java.lang.String getApplicationName()
ContentAggregator instance belongs to.
getApplicationName in interface ContentAggregatorContentAggregator instance belongs to.public final void setApplicationName(java.lang.String applicationName)
AbstractContentAggregator instant belongs to.
Note: Application name property must not be set after this AbstractContentAggregator instance is
registered to OSGi framework.
applicationName - The application name. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if the specified applicationName argument is null or
empty.
public final void dispose()
throws java.lang.IllegalStateException
RootContentAggregator instance.
Note: Dispose does not unregister this RootContentAggregator, and ensure that dispose is only called
after this RootContentAggregator instance is unregistered from OSGi container.
dispose in interface ContentAggregatorjava.lang.IllegalStateException - Thrown if this content tracker has not been registered.ServiceRegistration.unregister()protected final org.osgi.framework.BundleContext getBundleContext()
public final void updated(java.util.Dictionary config)
throws org.osgi.service.cm.ConfigurationException
updated in interface org.osgi.service.cm.ManagedServiceorg.osgi.service.cm.ConfigurationExceptionprotected void onUpdated(java.util.Dictionary config)
public final void addContent(java.lang.String wicketId,
ContentSource source)
throws java.lang.IllegalArgumentException
source to this RootContentAggregator and mapped it as wicketId.
addContent in interface ContentTrackingCallbackwicketId - The wicket id. This argument must not be null or empty.source - The source. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
public final boolean removeContent(java.lang.String wicketId,
ContentSource content)
throws java.lang.IllegalArgumentException
content to this RootContentAggregator and unmapped it as wicketId.
removeContent in interface ContentTrackingCallbackwicketId - The wicket id. This argument must not be null or empty.content - The content. This argument must not be null.
boolean indicator whether removal is successfull.
java.lang.IllegalArgumentException - Thrown if one or both arguments are null.
public final org.osgi.framework.ServiceRegistration register()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected java.lang.String[] getStringArrayProperty(java.lang.String key)
protected java.lang.String getStringProperty(java.lang.String key,
java.lang.String defaultValue)
protected void setProperty(java.lang.String key,
java.lang.Object value)
protected void updateRegistration()
protected java.lang.Object getObjectProperty(java.lang.String key)
protected void onDispose()
public final java.util.List<java.lang.String> getWiredSourceIds(java.lang.String wicketId,
java.util.Comparator<ContentSource> comparator)
throws java.lang.IllegalArgumentException
wicketId - The WicketID that we want to find the wiring for.comparator - The sorting comparator.
java.lang.IllegalArgumentException - Thrown if the specified wicketId argument is null.createWiredComponent(String,String)
public final org.apache.wicket.Component createWiredComponent(java.lang.String sourceId,
java.lang.String wicketId)
throws java.lang.IllegalArgumentException
sourceId - The SourceID of the ContentSource that we want to create a component.wicketId - The WicketID of the component to be created by the ContentSource. This responds to the
wicket:id in the markup.
sourceId and wicketId.
java.lang.IllegalArgumentException - Thrown if the specified sourceId (or/and) wicketId argument is null.getWiredSourceIds(String,java.util.Comparator)
public final <V extends ContentSource> java.util.List<V> getContents(java.lang.String wicketId)
throws java.lang.IllegalArgumentException
ContentSource instnaces of the specified wicketId. Returns an empty list if
there is no content for the specified wicketId.
wicketId - The wicket id. This argument must not be null or empty.
ContentSource of the specified wicketId.
java.lang.IllegalArgumentException - if the wicketId is null or empty.protected PaxWicketAuthentication getAuthentication()
public final ContentSource<? extends org.apache.wicket.Component> getContentById(java.lang.String wicketId,
java.lang.String sourceId)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||