Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

oracle.adf.share.services
Class ServicePlugin

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

public class ServicePlugin
extends java.lang.Object

For internal use only. Application developers should not use this
Applications must not create this class directly. This class is the in-memory representation of the jar sva file

Field Summary
protected  boolean browsable
           
protected  java.util.List<URLDescriptor> cachedResults
           
protected  java.lang.String remainder
           
protected  java.lang.String serviceType
           
protected  java.lang.String strategyClassName
           
protected  ResourceServiceStrategy strategyInstance
           
protected  java.util.List<java.lang.String> tokenizedResources
           
 
Constructor Summary
ServicePlugin(java.lang.String serviceLine)
           
ServicePlugin(java.lang.String serviceLine, java.util.Map<java.lang.String,java.util.List<java.lang.String>> resourceHolder, java.util.HashSet<java.lang.String> nonBrowsables)
           
 
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.util.List<URLDescriptor> getTokenizedResources(DescriptorContext dctx)
           
 java.lang.String getToolTipText()
           
 int hashCode()
           
 boolean isBrowsable()
           
 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

browsable

protected boolean browsable

tokenizedResources

protected java.util.List<java.lang.String> tokenizedResources

cachedResults

protected java.util.List<URLDescriptor> cachedResults

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)

ServicePlugin

public ServicePlugin(java.lang.String serviceLine,
                     java.util.Map<java.lang.String,java.util.List<java.lang.String>> resourceHolder,
                     java.util.HashSet<java.lang.String> nonBrowsables)
Method Detail

getServiceType

public java.lang.String getServiceType()

getStrategyClassName

public java.lang.String getStrategyClassName()

getRemainder

public java.lang.String getRemainder()

isBrowsable

public boolean isBrowsable()

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

getTokenizedResources

public java.util.List<URLDescriptor> getTokenizedResources(DescriptorContext dctx)
Returns:
of null indicates that the requested service type didn't have any tokenizable descriptors in the input class loader

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

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