Class ComponentCommands
java.lang.Object
org.apache.felix.scr.impl.ComponentCommands
- All Implemented Interfaces:
org.osgi.util.tracker.ServiceTrackerCustomizer<Object, org.osgi.framework.ServiceRegistration<?>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.osgi.framework.ServiceRegistration<ComponentCommands> private final Comparator<org.osgi.service.component.runtime.dto.ComponentConfigurationDTO> private final org.osgi.framework.BundleContextprivate final org.osgi.util.tracker.ServiceTracker<Object, org.osgi.framework.ServiceRegistration<?>> private static final Stringprivate static final Stringprivate final org.osgi.service.component.runtime.ServiceComponentRuntimeprivate final ScrConfigurationprivate org.osgi.framework.ServiceRegistration<ScrInfo> private final Comparator<org.osgi.framework.dto.ServiceReferenceDTO> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedComponentCommands(org.osgi.framework.BundleContext context, org.osgi.service.component.runtime.ServiceComponentRuntime scr, ScrConfiguration scrConfig) -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.framework.ServiceRegistration<?> addingService(org.osgi.framework.ServiceReference<Object> reference) private StringarrayToString(String[] array) config()private ObjectcreateConverter(org.osgi.framework.Bundle bundle) booleanbooleanprivate List<org.osgi.service.component.runtime.dto.ComponentDescriptionDTO> findComponents(String name) (package private) CharSequenceformat(org.osgi.service.component.runtime.dto.ComponentConfigurationDTO dto, int level) (package private) CharSequenceformat(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO[] dtoArray, int level) (package private) CharSequenceformat(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO dto, int level) private static String[]getStringArray(Map<String, ?> map, String name, String[] defaultValue) org.osgi.service.component.runtime.dto.ComponentConfigurationDTOinfo(long id) org.osgi.service.component.runtime.dto.ComponentDescriptionDTOorg.osgi.service.component.runtime.dto.ComponentDescriptionDTO[]list()org.osgi.service.component.runtime.dto.ComponentDescriptionDTO[]list(long bundleId) voidmodifiedService(org.osgi.framework.ServiceReference<Object> reference, org.osgi.framework.ServiceRegistration<?> reg) (package private) static voidprintColumnsAligned(String title, Map<String, String> properties, char underlineChar, StringBuilder builder) (package private) voidprintComponentDescriptionAndConfigs(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO descDto, org.osgi.service.component.runtime.dto.ComponentConfigurationDTO[] configs, StringBuilder builder) (package private) static StringprintProperties(Map<String, ?> props, String indent) (package private) StringprintPublishedServices(org.osgi.framework.ServiceReference<?>[] serviceRefs) (package private) voidprintServiceReference(org.osgi.service.component.runtime.dto.ReferenceDTO reference, String state, org.osgi.framework.dto.ServiceReferenceDTO[] bindings, StringBuilder builder) (package private) StringprintServiceReferences(org.osgi.service.component.runtime.dto.SatisfiedReferenceDTO[] satisfiedReferences, org.osgi.service.component.runtime.dto.UnsatisfiedReferenceDTO[] unsatisfiedReferences, org.osgi.service.component.runtime.dto.ReferenceDTO[] references) (package private) voidregister()voidremovedService(org.osgi.framework.ServiceReference<Object> reference, org.osgi.framework.ServiceRegistration<?> reg) private voidsafeUnregister(org.osgi.framework.ServiceRegistration<?> registration) (package private) static final StringstateToString(int state) (package private) voidvoidupdateProvideScrInfoService(boolean register)
-
Field Details
-
INDENT_1
- See Also:
-
INDENT_2
- See Also:
-
context
private final org.osgi.framework.BundleContext context -
scr
private final org.osgi.service.component.runtime.ServiceComponentRuntime scr -
scrConfig
-
gogoRuntimeTracker
private final org.osgi.util.tracker.ServiceTracker<Object, org.osgi.framework.ServiceRegistration<?>> gogoRuntimeTracker -
configDtoComparator
private final Comparator<org.osgi.service.component.runtime.dto.ComponentConfigurationDTO> configDtoComparator -
serviceRefDtoComparator
-
commandsReg
-
scrInfoReg
-
-
Constructor Details
-
ComponentCommands
protected ComponentCommands(org.osgi.framework.BundleContext context, org.osgi.service.component.runtime.ServiceComponentRuntime scr, ScrConfiguration scrConfig)
-
-
Method Details
-
register
void register() -
unregister
void unregister() -
updateProvideScrInfoService
public void updateProvideScrInfoService(boolean register) -
list
public org.osgi.service.component.runtime.dto.ComponentDescriptionDTO[] list() -
list
public org.osgi.service.component.runtime.dto.ComponentDescriptionDTO[] list(long bundleId) -
findComponents
-
info
-
info
public org.osgi.service.component.runtime.dto.ComponentConfigurationDTO info(long id) -
enable
-
disable
-
config
-
convert
-
format
- Throws:
Exception
-
format
CharSequence format(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO[] dtoArray, int level) throws Exception - Throws:
Exception
-
format
CharSequence format(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO dto, int level) throws Exception - Throws:
Exception
-
format
CharSequence format(org.osgi.service.component.runtime.dto.ComponentConfigurationDTO dto, int level) throws Exception - Throws:
Exception
-
printComponentDescriptionAndConfigs
void printComponentDescriptionAndConfigs(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO descDto, org.osgi.service.component.runtime.dto.ComponentConfigurationDTO[] configs, StringBuilder builder) -
printPublishedServices
-
arrayToString
-
stateToString
-
printProperties
-
printServiceReferences
String printServiceReferences(org.osgi.service.component.runtime.dto.SatisfiedReferenceDTO[] satisfiedReferences, org.osgi.service.component.runtime.dto.UnsatisfiedReferenceDTO[] unsatisfiedReferences, org.osgi.service.component.runtime.dto.ReferenceDTO[] references) -
printServiceReference
void printServiceReference(org.osgi.service.component.runtime.dto.ReferenceDTO reference, String state, org.osgi.framework.dto.ServiceReferenceDTO[] bindings, StringBuilder builder) -
printColumnsAligned
static void printColumnsAligned(String title, Map<String, String> properties, char underlineChar, StringBuilder builder) -
getStringArray
private static String[] getStringArray(Map<String, ?> map, String name, String[] defaultValue) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
safeUnregister
private void safeUnregister(org.osgi.framework.ServiceRegistration<?> registration) -
addingService
-
createConverter
-
modifiedService
-
removedService
-