Liferay 6.2.0-ce-m3

com.liferay.portal.kernel.jsonwebservice
Class BaseJSONWebServiceConfigurator

java.lang.Object
  extended by com.liferay.portal.kernel.jsonwebservice.BaseJSONWebServiceConfigurator
All Implemented Interfaces:
JSONWebServiceConfigurator

public abstract class BaseJSONWebServiceConfigurator
extends Object
implements JSONWebServiceConfigurator


Constructor Summary
BaseJSONWebServiceConfigurator()
           
 
Method Summary
 void clean()
           
abstract  void configure()
           
 ClassLoader getClassLoader()
           
 String getContextPath()
           
 int getRegisteredActionsCount()
           
 javax.servlet.ServletContext getServletContext()
           
protected  byte[] getTypeSignatureBytes(Class<?> clazz)
           
protected  boolean hasAnnotatedServiceImpl(String className)
           
 void init(javax.servlet.ServletContext servletContext, ClassLoader classLoader)
           
protected  boolean isJSONWebServiceClass(Class<?> clazz)
           
protected  boolean isTypeSignatureInUse(InputStream inputStream)
           
protected  Class<?> loadUtilClass(Class<?> implementationClass)
           
protected  void onJSONWebServiceClass(String className)
           
 void registerClass(String className, InputStream inputStream)
           
protected  void registerJSONWebServiceAction(Class<?> implementationClass, Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseJSONWebServiceConfigurator

public BaseJSONWebServiceConfigurator()
Method Detail

clean

public void clean()
Specified by:
clean in interface JSONWebServiceConfigurator

configure

public abstract void configure()
                        throws PortalException,
                               SystemException
Specified by:
configure in interface JSONWebServiceConfigurator
Throws:
PortalException
SystemException

getClassLoader

public ClassLoader getClassLoader()

getContextPath

public String getContextPath()

getRegisteredActionsCount

public int getRegisteredActionsCount()
Specified by:
getRegisteredActionsCount in interface JSONWebServiceConfigurator

getServletContext

public javax.servlet.ServletContext getServletContext()

init

public void init(javax.servlet.ServletContext servletContext,
                 ClassLoader classLoader)
Specified by:
init in interface JSONWebServiceConfigurator

registerClass

public void registerClass(String className,
                          InputStream inputStream)
                   throws Exception
Specified by:
registerClass in interface JSONWebServiceConfigurator
Throws:
Exception

getTypeSignatureBytes

protected byte[] getTypeSignatureBytes(Class<?> clazz)

hasAnnotatedServiceImpl

protected boolean hasAnnotatedServiceImpl(String className)

isJSONWebServiceClass

protected boolean isJSONWebServiceClass(Class<?> clazz)

isTypeSignatureInUse

protected boolean isTypeSignatureInUse(InputStream inputStream)

loadUtilClass

protected Class<?> loadUtilClass(Class<?> implementationClass)
                          throws ClassNotFoundException
Throws:
ClassNotFoundException

onJSONWebServiceClass

protected void onJSONWebServiceClass(String className)
                              throws Exception
Throws:
Exception

registerJSONWebServiceAction

protected void registerJSONWebServiceAction(Class<?> implementationClass,
                                            Method method)
                                     throws Exception
Throws:
Exception

Liferay 6.2.0-ce-m3