Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.4.0)

E10686-05

oracle.adf.share.services
Class ServicePlugin

java.lang.Object
  extended by oracle.adf.share.services.ServicePlugin

public class ServicePlugin
extends java.lang.Object


Field Summary
protected  java.lang.String remainder
           
protected  java.lang.String serviceType
           
protected  java.lang.String strategyClassName
           
protected  ResourceServiceStrategy strategyInstance
           
 
Constructor Summary
ServicePlugin(java.lang.String serviceLine)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getRemainder()
           
 ResourceServiceStrategy getServiceStrategy(DescriptorContext ctx)
           
 java.lang.String getServiceType()
           
 java.lang.String getStrategyClassName()
           
 java.lang.String getToolTipText()
           
 int hashCode()
           
 void setServiceStrategy(ResourceServiceStrategy instance)
          In the event that getServiceStrategy fails and the RuntimeException is handled, the caller may want to cache a "fallback" instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serviceType

protected java.lang.String serviceType

strategyClassName

protected java.lang.String strategyClassName

remainder

protected java.lang.String remainder

strategyInstance

protected ResourceServiceStrategy strategyInstance
Constructor Detail

ServicePlugin

public ServicePlugin(java.lang.String serviceLine)
Method Detail

getServiceType

public java.lang.String getServiceType()

getStrategyClassName

public java.lang.String getStrategyClassName()

getRemainder

public java.lang.String getRemainder()

getToolTipText

public java.lang.String getToolTipText()

getServiceStrategy

public ResourceServiceStrategy getServiceStrategy(DescriptorContext ctx)
                                           throws java.lang.ClassNotFoundException,
                                                  java.lang.InstantiationException,
                                                  java.lang.IllegalAccessException,
                                                  java.lang.reflect.InvocationTargetException
Returns:
the instance of the strategy, or throw a wrapper RuntimeException.
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

setServiceStrategy

public void setServiceStrategy(ResourceServiceStrategy instance)
In the event that getServiceStrategy fails and the RuntimeException is handled, the caller may want to cache a "fallback" instance. If the plugin already has an instance, IllegalStateException is thrown.

Parameters:
instance - the fallback instance

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.4.0)

E10686-05

Copyright © 1997, 2011, Oracle. All rights reserved.