org.apache.stanbol.contenthub.web.fragment
Class ContenthubWebFragment

java.lang.Object
  extended by org.apache.stanbol.contenthub.web.fragment.ContenthubWebFragment
All Implemented Interfaces:
WebFragment

@Service
public class ContenthubWebFragment
extends java.lang.Object
implements WebFragment

Statically define the list of available resources and providers to be contributed to the the Stanbol JAX-RS Endpoint.


Constructor Summary
ContenthubWebFragment()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext ctx)
           
 org.osgi.framework.BundleContext getBundleContext()
           
 java.util.Set<java.lang.Class<?>> getJaxrsResourceClasses()
           
 java.util.Set<java.lang.Object> getJaxrsResourceSingletons()
           
 java.util.List<LinkResource> getLinkResources()
           
 java.lang.String getName()
           
 java.util.List<NavigationLink> getNavigationLinks()
           
 java.util.List<ScriptResource> getScriptResources()
           
 java.lang.String getStaticResourceClassPath()
           
 freemarker.cache.TemplateLoader getTemplateLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContenthubWebFragment

public ContenthubWebFragment()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface WebFragment

activate

@Activate
protected void activate(org.osgi.service.component.ComponentContext ctx)

getJaxrsResourceClasses

public java.util.Set<java.lang.Class<?>> getJaxrsResourceClasses()
Specified by:
getJaxrsResourceClasses in interface WebFragment

getJaxrsResourceSingletons

public java.util.Set<java.lang.Object> getJaxrsResourceSingletons()
Specified by:
getJaxrsResourceSingletons in interface WebFragment

getStaticResourceClassPath

public java.lang.String getStaticResourceClassPath()
Specified by:
getStaticResourceClassPath in interface WebFragment

getTemplateLoader

public freemarker.cache.TemplateLoader getTemplateLoader()
Specified by:
getTemplateLoader in interface WebFragment

getLinkResources

public java.util.List<LinkResource> getLinkResources()
Specified by:
getLinkResources in interface WebFragment

getScriptResources

public java.util.List<ScriptResource> getScriptResources()
Specified by:
getScriptResources in interface WebFragment

getNavigationLinks

public java.util.List<NavigationLink> getNavigationLinks()
Specified by:
getNavigationLinks in interface WebFragment

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()
Specified by:
getBundleContext in interface WebFragment


Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.