org.eclipse.cosmos.dc.mgmt.provisional.wsdm.impl
Class WSDMBindingFactory
java.lang.Object
org.eclipse.cosmos.dc.mgmt.provisional.wsdm.impl.WSDMBindingFactory
- All Implemented Interfaces:
- Binding, StatusChangeListener, WSDMHelperRegistry, org.osgi.framework.ServiceFactory
- Direct Known Subclasses:
- WSDMBindingService
public class WSDMBindingFactory
- extends java.lang.Object
- implements Binding, org.osgi.framework.ServiceFactory, WSDMHelperRegistry
|
Method Summary |
void |
addBindingExtension(java.lang.Object key,
BindingExtension extension)
|
void |
addRelationship(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.annotation.Annotation[] annotations)
|
void |
bindContribution(java.lang.Object contribution)
|
static org.apache.muse.ws.addressing.EndpointReference |
getAdvertisementTarget(java.lang.String key)
|
java.lang.Object |
getBindingForObject(java.lang.Object boundObject)
|
java.lang.String |
getBindingName()
|
static WSDMBindingFactory |
getDefault()
|
java.lang.Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration)
|
StatusChangeListener.STATUS |
getStatus()
|
protected static void |
loadAdvertisementTargets()
|
protected static WSDMNotificationInfo |
processNotification(ManagedEvent event,
java.lang.reflect.Field field,
java.lang.Class resourceClass)
|
protected static WSDMNotificationInfo |
processNotification(ManagedEvent event,
java.lang.reflect.Method method,
java.lang.Class resourceClass)
|
protected static WSDMOperationInfo |
processOperation(ManagedEventConsumer consumer,
java.lang.reflect.Method method)
|
protected static WSDMOperationInfo |
processOperation(ManagedOperation operation,
java.lang.reflect.Method method)
|
protected static WSDMAttributeInfo |
processProperty(ManagedProperty property,
java.lang.reflect.Field field,
java.lang.Class resourceClass)
|
protected static WSDMAttributeInfo |
processProperty(javax.xml.namespace.QName propName,
java.lang.reflect.Method getterMethod,
java.lang.reflect.Method setterMethod)
|
protected static WSDMRelationInfo |
processRelation(CreateManagedRelation relation,
java.lang.reflect.Method method)
|
protected static WSDMRelationInfo |
processRelation(DestroyManagedRelation relation,
java.lang.reflect.Method method)
|
protected static WSDMRelationInfo |
processRelation(ManagedRelation relation,
java.lang.reflect.Field field)
|
protected static WSDMInfo |
processResource(ManagedResource resource,
java.lang.Class resourceClass,
java.util.ArrayList<WSDMAttributeInfo> attrInfo,
java.util.ArrayList<WSDMOperationInfo> operInfo,
java.util.ArrayList<WSDMRelationInfo> relationInfo,
java.util.ArrayList<WSDMNotificationInfo> notificationInfo)
|
void |
raiseEvent(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object ret,
java.lang.annotation.Annotation[] annotations)
|
static void |
register(java.lang.Object resource)
|
void |
registerSchemaHelper(java.lang.Class type,
SchemaHelper helper)
|
void |
registerSerializer(java.lang.Class type,
org.apache.muse.core.serializer.Serializer serializer)
|
void |
removeRelationship(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.annotation.Annotation[] annotations)
|
static void |
setBundle(org.osgi.framework.Bundle bundle)
|
void |
setContributionManager(ContributionManager manager)
|
void |
setResourceManager(org.apache.muse.core.ResourceManager manager)
|
void |
setResourceRouter(org.apache.muse.core.routing.ResourceRouter router)
|
void |
setWSDMProvider(org.apache.muse.core.platform.osgi.ResourceManagementProvider wsdmProvider)
|
void |
statusChanged(java.lang.Object object,
StatusChangeListener.STATUS newStatus)
|
void |
unbindContribution(java.lang.Object contribution)
|
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
java.lang.Object service)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_ATTR_INFO_ARRAY
public static final WSDMAttributeInfo[] EMPTY_ATTR_INFO_ARRAY
EMPTY_OPER_INFO_ARRAY
public static final WSDMOperationInfo[] EMPTY_OPER_INFO_ARRAY
EMPTY_RELATION_INFO_ARRAY
public static final WSDMRelationInfo[] EMPTY_RELATION_INFO_ARRAY
EMPTY_NOTIFICATION_INFO_ARRAY
public static final WSDMNotificationInfo[] EMPTY_NOTIFICATION_INFO_ARRAY
WSDMBindingFactory
public WSDMBindingFactory()
setBundle
public static void setBundle(org.osgi.framework.Bundle bundle)
getDefault
public static WSDMBindingFactory getDefault()
setWSDMProvider
public void setWSDMProvider(org.apache.muse.core.platform.osgi.ResourceManagementProvider wsdmProvider)
setResourceRouter
public void setResourceRouter(org.apache.muse.core.routing.ResourceRouter router)
setResourceManager
public void setResourceManager(org.apache.muse.core.ResourceManager manager)
setContributionManager
public void setContributionManager(ContributionManager manager)
- Specified by:
setContributionManager in interface Binding
register
public static void register(java.lang.Object resource)
throws java.lang.Exception
- Throws:
java.lang.Exception
processResource
protected static WSDMInfo processResource(ManagedResource resource,
java.lang.Class resourceClass,
java.util.ArrayList<WSDMAttributeInfo> attrInfo,
java.util.ArrayList<WSDMOperationInfo> operInfo,
java.util.ArrayList<WSDMRelationInfo> relationInfo,
java.util.ArrayList<WSDMNotificationInfo> notificationInfo)
processRelation
protected static WSDMRelationInfo processRelation(ManagedRelation relation,
java.lang.reflect.Field field)
processRelation
protected static WSDMRelationInfo processRelation(CreateManagedRelation relation,
java.lang.reflect.Method method)
processRelation
protected static WSDMRelationInfo processRelation(DestroyManagedRelation relation,
java.lang.reflect.Method method)
processProperty
protected static WSDMAttributeInfo processProperty(ManagedProperty property,
java.lang.reflect.Field field,
java.lang.Class resourceClass)
processProperty
protected static WSDMAttributeInfo processProperty(javax.xml.namespace.QName propName,
java.lang.reflect.Method getterMethod,
java.lang.reflect.Method setterMethod)
processNotification
protected static WSDMNotificationInfo processNotification(ManagedEvent event,
java.lang.reflect.Field field,
java.lang.Class resourceClass)
processNotification
protected static WSDMNotificationInfo processNotification(ManagedEvent event,
java.lang.reflect.Method method,
java.lang.Class resourceClass)
processOperation
protected static WSDMOperationInfo processOperation(ManagedOperation operation,
java.lang.reflect.Method method)
processOperation
protected static WSDMOperationInfo processOperation(ManagedEventConsumer consumer,
java.lang.reflect.Method method)
addBindingExtension
public void addBindingExtension(java.lang.Object key,
BindingExtension extension)
bindContribution
public void bindContribution(java.lang.Object contribution)
- Specified by:
bindContribution in interface Binding
unbindContribution
public void unbindContribution(java.lang.Object contribution)
- Specified by:
unbindContribution in interface Binding
getService
public java.lang.Object getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration)
- Specified by:
getService in interface org.osgi.framework.ServiceFactory
ungetService
public void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
java.lang.Object service)
- Specified by:
ungetService in interface org.osgi.framework.ServiceFactory
addRelationship
public void addRelationship(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.annotation.Annotation[] annotations)
- Specified by:
addRelationship in interface Binding
raiseEvent
public void raiseEvent(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object ret,
java.lang.annotation.Annotation[] annotations)
- Specified by:
raiseEvent in interface Binding
removeRelationship
public void removeRelationship(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.annotation.Annotation[] annotations)
- Specified by:
removeRelationship in interface Binding
statusChanged
public void statusChanged(java.lang.Object object,
StatusChangeListener.STATUS newStatus)
- Specified by:
statusChanged in interface StatusChangeListener
loadAdvertisementTargets
protected static void loadAdvertisementTargets()
getAdvertisementTarget
public static org.apache.muse.ws.addressing.EndpointReference getAdvertisementTarget(java.lang.String key)
getStatus
public StatusChangeListener.STATUS getStatus()
- Specified by:
getStatus in interface Binding
getBindingForObject
public java.lang.Object getBindingForObject(java.lang.Object boundObject)
- Specified by:
getBindingForObject in interface Binding
registerSchemaHelper
public void registerSchemaHelper(java.lang.Class type,
SchemaHelper helper)
- Specified by:
registerSchemaHelper in interface WSDMHelperRegistry
registerSerializer
public void registerSerializer(java.lang.Class type,
org.apache.muse.core.serializer.Serializer serializer)
- Specified by:
registerSerializer in interface WSDMHelperRegistry
getBindingName
public java.lang.String getBindingName()
- Specified by:
getBindingName in interface Binding