org.ow2.jonas.ipojo.interceptor.internal.handler
Class iPOJOInterceptor

java.lang.Object
  extended by org.apache.felix.ipojo.Handler
      extended by org.apache.felix.ipojo.PrimitiveHandler
          extended by org.ow2.jonas.ipojo.interceptor.internal.handler.iPOJOInterceptor
All Implemented Interfaces:
org.apache.felix.ipojo.ConstructorInjector, org.apache.felix.ipojo.FieldInterceptor, org.apache.felix.ipojo.MethodInterceptor, IInstanceProvider

public class iPOJOInterceptor
extends org.apache.felix.ipojo.PrimitiveHandler
implements IInstanceProvider

iPOJO Interceptor handler

Author:
Jeremy Cazaux

Field Summary
static String PREFIX_SOURCE
          The prefix source of an ipojo instance
 
Fields inherited from class org.apache.felix.ipojo.PrimitiveHandler
HANDLER_TYPE
 
Fields inherited from class org.apache.felix.ipojo.Handler
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid
 
Constructor Summary
iPOJOInterceptor()
           
 
Method Summary
 void configure(org.apache.felix.ipojo.metadata.Element element, Dictionary dictionary)
          
 String getDeployable()
           
 org.apache.felix.ipojo.architecture.InstanceDescription getInstanceDescription()
          
 String getName()
           
 Date getShutdownTime()
           
 String getSource()
           
 Date getStartTime()
           
 ComponentInstanceState getStateComponent()
           
 Map<Throwable,Long> getThrowables()
           
 Long getUpTime()
           
 void onError(Object pojo, Member method, Throwable throwable)
          
 void start()
          
 void stateChanged(int state)
          
 void stop()
          
 
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onExit, onFinally, onGet, onSet, setFactory
 
Methods inherited from class org.apache.felix.ipojo.Handler
debug, error, error, getDescription, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX_SOURCE

public static final String PREFIX_SOURCE
The prefix source of an ipojo instance

See Also:
Constant Field Values
Constructor Detail

iPOJOInterceptor

public iPOJOInterceptor()
Method Detail

configure

public void configure(org.apache.felix.ipojo.metadata.Element element,
                      Dictionary dictionary)
               throws org.apache.felix.ipojo.ConfigurationException

Specified by:
configure in class org.apache.felix.ipojo.Handler
Throws:
org.apache.felix.ipojo.ConfigurationException

onError

public void onError(Object pojo,
                    Member method,
                    Throwable throwable)

Specified by:
onError in interface org.apache.felix.ipojo.MethodInterceptor
Overrides:
onError in class org.apache.felix.ipojo.PrimitiveHandler

stateChanged

public void stateChanged(int state)

Overrides:
stateChanged in class org.apache.felix.ipojo.Handler

stop

public void stop()

Specified by:
stop in class org.apache.felix.ipojo.Handler

start

public void start()

Specified by:
start in class org.apache.felix.ipojo.Handler

getName

public String getName()
Specified by:
getName in interface IInstanceProvider
Returns:
the name of the iPOJO component

getStateComponent

public ComponentInstanceState getStateComponent()
Specified by:
getStateComponent in interface IInstanceProvider
Returns:
the state of the iPOJO service

getDeployable

public String getDeployable()
Specified by:
getDeployable in interface IInstanceProvider
Returns:
the deployable associate to the iPOJO service

getStartTime

public Date getStartTime()
Specified by:
getStartTime in interface IInstanceProvider
Returns:
the start time of the service

getUpTime

public Long getUpTime()
Specified by:
getUpTime in interface IInstanceProvider
Returns:
the uptime of the service

getShutdownTime

public Date getShutdownTime()
Specified by:
getShutdownTime in interface IInstanceProvider
Returns:
the endtime of the service

getThrowables

public Map<Throwable,Long> getThrowables()
Specified by:
getThrowables in interface IInstanceProvider
Returns:
the list of Throwable

getSource

public String getSource()
Specified by:
getSource in interface IInstanceProvider
Returns:
the 'id' of the instance

getInstanceDescription

public org.apache.felix.ipojo.architecture.InstanceDescription getInstanceDescription()

Specified by:
getInstanceDescription in interface IInstanceProvider
Returns:
the InstanceDescription of the iPOJO instance managed


Copyright © 2012 OW2 Consortium. All Rights Reserved.