oracle.adf.share.services
Class ServicePlugin
java.lang.Object
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
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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
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)
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
Copyright © 1997, 2011, Oracle. All rights reserved.